mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:15:59 +00:00
Check the correct buffer for failed memory allocation, found by Amine Khaldi
svn path=/trunk/; revision=42767
This commit is contained in:
parent
332c985b52
commit
6af2bfe3c7
1 changed files with 1 additions and 1 deletions
|
@ -405,7 +405,7 @@ MoveFileWithProgressW (
|
|||
}
|
||||
|
||||
lpExistingFileName2 = (LPWSTR) HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,max_size * sizeof(WCHAR));
|
||||
if (lpNewFileName2 == NULL)
|
||||
if (lpExistingFileName2 == NULL)
|
||||
{
|
||||
HeapFree(GetProcessHeap(),0,(VOID *) lpNewFileName2);
|
||||
HeapFree(GetProcessHeap(),0,(VOID *) lpDeleteFile);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue