mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[APPWIZ]
Fix memory leaks svn path=/trunk/; revision=53923
This commit is contained in:
parent
bbb7e15b76
commit
30b66be3ad
1 changed files with 4 additions and 0 deletions
|
@ -335,6 +335,8 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
|
|||
nLength = wcslen(szPath);
|
||||
if (!nLength)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, pContext);
|
||||
|
||||
/* no directory given */
|
||||
return FALSE;
|
||||
}
|
||||
|
@ -342,6 +344,8 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
|
|||
attrs = GetFileAttributesW(szPath);
|
||||
if (attrs == INVALID_FILE_ATTRIBUTES)
|
||||
{
|
||||
HeapFree(GetProcessHeap(), 0, pContext);
|
||||
|
||||
/* invalid path */
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue