Paul Vriens : shlwapi/path: Proper use of GetProcessHeap().

Alexandre Julliard julliard at wine.codeweavers.com
Mon Mar 26 08:12:47 CDT 2007


Module: wine
Branch: master
Commit: 20291e082c39ef330b42ea1502bc7b35a47209d5
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=20291e082c39ef330b42ea1502bc7b35a47209d5

Author: Paul Vriens <paul.vriens.wine at gmail.com>
Date:   Fri Mar 23 20:49:00 2007 +0100

shlwapi/path: Proper use of GetProcessHeap().

---

 dlls/shlwapi/path.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dlls/shlwapi/path.c b/dlls/shlwapi/path.c
index f958f56..b24c977 100644
--- a/dlls/shlwapi/path.c
+++ b/dlls/shlwapi/path.c
@@ -1181,7 +1181,7 @@ static BOOL WINAPI SHLWAPI_PathFindInOtherDirs(LPWSTR lpszFile, DWORD dwWhich)
   /* Try dirs listed in %PATH% */
   dwLenPATH = GetEnvironmentVariableW(szPath, buff, MAX_PATH);
 
-  if (!dwLenPATH || !(lpszPATH = HeapAlloc(GetProcessHeap, 0, (dwLenPATH + 1) * sizeof (WCHAR))))
+  if (!dwLenPATH || !(lpszPATH = HeapAlloc(GetProcessHeap(), 0, (dwLenPATH + 1) * sizeof (WCHAR))))
     return FALSE;
 
   GetEnvironmentVariableW(szPath, lpszPATH, dwLenPATH + 1);
@@ -1204,17 +1204,17 @@ static BOOL WINAPI SHLWAPI_PathFindInOtherDirs(LPWSTR lpszFile, DWORD dwWhich)
 
     if (!PathAppendW(buff, lpszFile))
     {
-      HeapFree(GetProcessHeap, 0, lpszPATH);
+      HeapFree(GetProcessHeap(), 0, lpszPATH);
       return FALSE;
     }
     if (PathFileExistsDefExtW(buff, dwWhich))
     {
       strcpyW(lpszFile, buff);
-      HeapFree(GetProcessHeap, 0, lpszPATH);
+      HeapFree(GetProcessHeap(), 0, lpszPATH);
       return TRUE;
     }
   }
-  HeapFree(GetProcessHeap, 0, lpszPATH);
+  HeapFree(GetProcessHeap(), 0, lpszPATH);
   return FALSE;
 }
 




More information about the wine-cvs mailing list