Brock York <twunknown(a)gmail.com> writes:
+ /* make sure that the replaced file is opened like an exe*/ + hReplacedFile = CreateFileA(replaced, GENERIC_READ | SYNCHRONIZE, FILE_SHARE_READ | FILE_SHARE_DELETE, NULL, OPEN_EXISTING, 0, 0); + ok(hReplacedFile != INVALID_HANDLE_VALUE, + "unexpected error, replaced file should be able to be opened %d\n", GetLastError()); + /*Calling ReplaceFileA on an exe should succeed*/ + ret = pReplaceFileA(replaced, replacement, NULL, 0, 0, 0); + ok(ret, "ReplaceFileA: unexpected error %d\n", GetLastError()); + CloseHandle(hReplacedFile);
This fails on Wine: file.c:3701: Test failed: ReplaceFileA: unexpected error 1175 Please note that tests that currently fail on Wine must be marked todo_wine, with the todo removed in the patch that fixes the bug. All the tests need to succeed after every patch. -- Alexandre Julliard julliard(a)winehq.org