Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
559 B

  1. void CopyAndFreeOLESTR(LPOLESTR polestr, char **ppszOut)
  2. {
  3. // See if there is any work
  4. if (polestr == NULL)
  5. {
  6. if (ppszOut != NULL)
  7. {
  8. // Output string requested so set it to NULL.
  9. *ppszOut = NULL;
  10. }
  11. return;
  12. }
  13. // Get the public memory allocator
  14. if (pszOut)
  15. {
  16. // Copy of string converted to ANSI is requested
  17. }
  18. // Free the original string
  19. }
  20. LPOLESTR CreateOLESTR(char *pszIn)
  21. {
  22. // Get the public memory allocator
  23. // Allocate the string
  24. // Convert the string
  25. }