Re: kernel32: Implement ReplaceFileW. [RESEND]
5 Feb
2008
5 Feb
'08
12:25 p.m.
Robert Shearman <rob(a)codeweavers.com> writes:
+ /* + * Open the replacement file for reading, writing, and deleting + * (writing and deleting are needed when finished) + */ + if ((hReplacement = CreateFileW(lpReplacementFileName, + GENERIC_READ | GENERIC_WRITE, + FILE_SHARE_READ | FILE_SHARE_WRITE | FILE_SHARE_DELETE, + NULL, OPEN_EXISTING, 0, 0)) == INVALID_HANDLE_VALUE) + { + error = GetLastError(); /* Use error returned by CreateFileW */ + goto fail; + }
Files should be opened with NtOpenFile the same way MoveFile does, to avoid having to convert path names twice. -- Alexandre Julliard julliard(a)winehq.org
6521
Age (days ago)
6521
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard