mirror of
https://github.com/reactos/reactos.git
synced 2024-08-02 17:40:58 +00:00
[APPWIZ]
Fix memory leaks svn path=/trunk/; revision=53923
This commit is contained in:
parent
bbb7e15b76
commit
30b66be3ad
|
@ -335,6 +335,8 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
|
||||||
nLength = wcslen(szPath);
|
nLength = wcslen(szPath);
|
||||||
if (!nLength)
|
if (!nLength)
|
||||||
{
|
{
|
||||||
|
HeapFree(GetProcessHeap(), 0, pContext);
|
||||||
|
|
||||||
/* no directory given */
|
/* no directory given */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
@ -342,6 +344,8 @@ ShowCreateShortcutWizard(HWND hwndCPl, LPWSTR szPath)
|
||||||
attrs = GetFileAttributesW(szPath);
|
attrs = GetFileAttributesW(szPath);
|
||||||
if (attrs == INVALID_FILE_ATTRIBUTES)
|
if (attrs == INVALID_FILE_ATTRIBUTES)
|
||||||
{
|
{
|
||||||
|
HeapFree(GetProcessHeap(), 0, pContext);
|
||||||
|
|
||||||
/* invalid path */
|
/* invalid path */
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue