mirror of
https://github.com/reactos/reactos.git
synced 2025-01-07 06:45:24 +00:00
[CMD]
- Fix a broken check - Plug a memory leak svn path=/trunk/; revision=69241
This commit is contained in:
parent
520dcf77b7
commit
b987b1571e
1 changed files with 2 additions and 1 deletions
|
@ -100,9 +100,10 @@ INT replace(TCHAR source[MAX_PATH], TCHAR dest[MAX_PATH], DWORD dwFlags, BOOL *d
|
|||
hFileDest = CreateFile(dest, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING,
|
||||
0, NULL);
|
||||
|
||||
if (hFileSrc == INVALID_HANDLE_VALUE)
|
||||
if (hFileDest == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
ConOutResPrintf(STRING_COPY_ERROR1, dest);
|
||||
CloseHandle (hFileSrc);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue