http://bugs.winehq.org/show_bug.cgi?id=24963
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://greenarraychips.com/ |https://web.archive.org/web |home/documents/greg/code/af |/20110705205023/http://gree |-34k2-ga144-1-10-PD.zip |narraychips.com/home/docume | |nts/greg/code/af-34k2-ga144 | |-1-10-PD.zip Resolution|FIXED |--- Status|RESOLVED |REOPENED
--- Comment #9 from Anastasius Focht focht@gmx.net --- Hello Vijay.
Unfortunately, it's not fixed. The check is too late; you need to do that already in LoadImageW.
https://gitlab.winehq.org/wine/wine/-/blob/09f5c0d1239465c07ed2567b6a4591fdd...
--- snip --- HANDLE WINAPI LoadImageW( HINSTANCE hinst, LPCWSTR name, UINT type, INT desiredx, INT desiredy, UINT loadflags ) { int depth; WCHAR path[MAX_PATH];
TRACE_(resource)("(%p,%s,%d,%d,%d,0x%08x)\n", hinst,debugstr_w(name),type,desiredx,desiredy,loadflags);
if (loadflags & LR_LOADFROMFILE) { loadflags &= ~LR_SHARED; /* relative paths are not only relative to the current working directory */ if (SearchPathW(NULL, name, NULL, ARRAY_SIZE(path), path, NULL)) name = path; } switch (type) { case IMAGE_BITMAP: return BITMAP_Load( hinst, name, desiredx, desiredy, loadflags );
case IMAGE_ICON: case IMAGE_CURSOR: depth = 1; if (!(loadflags & LR_MONOCHROME)) depth = get_display_bpp(); return CURSORICON_Load(hinst, name, desiredx, desiredy, depth, (type == IMAGE_CURSOR), loadflags); } return 0; } --- snip ---
https://gitlab.winehq.org/wine/wine/-/blob/09f5c0d1239465c07ed2567b6a4591fdd...
--- snip --- $ wine ./Okad2-41-pd.exe 0124:err:environ:init_peb starting L"Z:\home\rmi1974\Downloads\test\Okad2-41-pd.exe" in experimental wow64 mode cmcf 4.1-pd 0022FF28 Reading file OkadWork.cf 00000003 00020400 FFFFFFFE Error in system operation. 0022FF28 One time operations: Win32 API Error: 00000002 100058FD 10006E94 00000000 10004E44 wine: Unhandled page fault on read access to 00007F8A at address 7BF9BFCB (thread 0124), starting debugger... 012c:err:environ:init_peb starting L"C:\windows\syswow64\winedbg.exe" in experimental wow64 mode --- snip ---
$ sha1sum af-34k2-ga144-1-10-PD.zip b54cfc88e86e7c09edec4b8f37426e9cffb29e18 af-34k2-ga144-1-10-PD.zip
$ du -sh af-34k2-ga144-1-10-PD.zip 108K af-34k2-ga144-1-10-PD.zip
$ wine --version wine-10.19-269-gf41f67806b9
Regards