mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:03:00 +00:00
Moved CloseFile within MoveFileExW.
svn path=/trunk/; revision=2879
This commit is contained in:
parent
4e33db4f34
commit
d5b7bf25ee
1 changed files with 2 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: move.c,v 1.4 2000/06/29 23:35:24 dwelch Exp $
|
/* $Id: move.c,v 1.5 2002/04/27 19:15:43 hbirr Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS system libraries
|
* PROJECT: ReactOS system libraries
|
||||||
|
@ -143,6 +143,7 @@ MoveFileExW (
|
||||||
FileRename,
|
FileRename,
|
||||||
FILE_RENAME_SIZE,
|
FILE_RENAME_SIZE,
|
||||||
FileRenameInformation);
|
FileRenameInformation);
|
||||||
|
CloseHandle(hFile);
|
||||||
if (!NT_SUCCESS(errCode))
|
if (!NT_SUCCESS(errCode))
|
||||||
{
|
{
|
||||||
if (CopyFileW (lpExistingFileName,
|
if (CopyFileW (lpExistingFileName,
|
||||||
|
@ -150,8 +151,6 @@ MoveFileExW (
|
||||||
FileRename->Replace))
|
FileRename->Replace))
|
||||||
DeleteFileW (lpExistingFileName);
|
DeleteFileW (lpExistingFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
CloseHandle(hFile);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue