Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
20291e08
Commit
20291e08
authored
Mar 23, 2007
by
Paul Vriens
Committed by
Alexandre Julliard
Mar 26, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi/path: Proper use of GetProcessHeap().
parent
a85b3c9f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
path.c
dlls/shlwapi/path.c
+4
-4
No files found.
dlls/shlwapi/path.c
View file @
20291e08
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment