kernel32/tests: Improve ReplaceFileW error checking.
Signed-off-by: Brock York <twunknown@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
2bbd309d66
commit
324e0d2e9f
|
@ -3666,7 +3666,7 @@ static void test_ReplaceFileA(void)
|
||||||
*/
|
*/
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
ret = pReplaceFileA(replaced, replacement, backup, 0, 0, 0);
|
ret = pReplaceFileA(replaced, replacement, backup, 0, 0, 0);
|
||||||
ok(ret != ERROR_UNABLE_TO_REMOVE_REPLACED, "ReplaceFileA: unexpected error %d\n", GetLastError());
|
todo_wine ok(ret == 0 && GetLastError() == ERROR_ACCESS_DENIED, "ReplaceFileA: unexpected error %d\n", GetLastError());
|
||||||
/* make sure that the replacement file still exists */
|
/* make sure that the replacement file still exists */
|
||||||
hReplacementFile = CreateFileA(replacement, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
|
hReplacementFile = CreateFileA(replacement, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, 0);
|
||||||
ok(hReplacementFile != INVALID_HANDLE_VALUE ||
|
ok(hReplacementFile != INVALID_HANDLE_VALUE ||
|
||||||
|
|
Loading…
Reference in New Issue