Results 1 to 1 of 1
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Dec 2010
UpdateResource Windows API not working in Wine?
// 1st parameter on the command line is file name to modify resource in
// 2nd - new resource value
int _tmain(int argc, _TCHAR* argv)
HANDLE hResource = BeginUpdateResource(argv, FALSE);
BOOL success = FALSE;
lstrlen(argv) * sizeof TCHAR))
success = EndUpdateResource(hResource, FALSE);
_tprintf(success ? TEXT("success\n") : TEXT("failure\n"));
I put UpdateResource.exe and another Windows program hello.exe under .wine/drive_c and created there a batch file test.bat containing one command:
UpdateResource.exe hello.exe whatever > out.txt
After I run
wineconsole --backend=curses test.bat
out.txt shows "success", which means that all involved UpdateResource functions succeeded. However, hello.exe (including its timestamp) remains unchanged.
Under native Windows this works as expected.
Is this API not implemented, or am I missing something?
Thanks a lot.