https://bugs.winehq.org/show_bug.cgi?id=54412
Bug ID: 54412 Summary: Setup failed when run ExamBible.exe with wine Product: Wine Version: 7.0.1 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: critical Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: luoriyuhui21@163.com Distribution: ---
Created attachment 73971 --> https://bugs.winehq.org/attachment.cgi?id=73971 the error log file
when using wine to load ExamBible.exe, this program cannot setup. The error is as , 0020:0024:err:module:import_dll Library oleaut32
oleaut32.dll (which is needed by L"Z:\home\keming\JC_EJJZS_GGKM2.3\ExamBible.exe") not found 0020:0024:err:module:import_dll loadpath (null) (which is needed by L"Z:\home\keming\JC_EJJZS_GGKM2.3\ExamBible.exe") not found 0020:0024:err:module:LdrInitializeThunk Importing dlls for L"Z:\home\keming\JC_EJJZS_GGKM2.3\ExamBible.exe" failed, status c0000135 keming@keming-VirtualBox:~/JC_EJJZS_GGKM2.3$ 0038:00fc:err:module:LdrInitializeThunk end.
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #1 from Keming luoriyuhui21@163.com --- I track this issue ,fond the oleaut32 dll name length is not correct, is 276 the log proved it,
0020:0024:err:module:import_dll name = oleaut32
oleaut32.dll; lenth = 276
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #2 from Keming luoriyuhui21@163.com --- I continue to track this issue. found the oleaut32 dll is end with "0x0D 0X0A 0X0D 0x0A" in ExamBible.exe hex file
"0x0D 0X0A" can not be recognized as the end of string. normally the "\0" is end of string. maybe somewhere is wrong.
I attach the picture of ExamBile.exe as reference.
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #3 from Keming luoriyuhui21@163.com --- Created attachment 73972 --> https://bugs.winehq.org/attachment.cgi?id=73972 import dll part of exe hex file
https://bugs.winehq.org/show_bug.cgi?id=54412
David Kahurani k.kahurani@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |k.kahurani@gmail.com
--- Comment #4 from David Kahurani k.kahurani@gmail.com --- First, make sure there is nothing wrong with your prefix by trying to run from a clean prefix.
$WINEPREFIX=~/.new-prefix wine <executable>
Usually, I find similar issues with dlls when my prefix gets corrupted.
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #5 from David Kahurani k.kahurani@gmail.com --- Hmmm... I think your diagnosis is correct, though seeing as there's a lot of whitespace after the name oleaut32
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #6 from Keming luoriyuhui21@163.com --- Created attachment 73973 --> https://bugs.winehq.org/attachment.cgi?id=73973 proposed patch
maybe this patch can solve this problem
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #7 from David Kahurani k.kahurani@gmail.com --- (In reply to Keming from comment #6)
Created attachment 73973 [details] proposed patch
maybe this patch can solve this problem
I think the patch will get it running, though, you have duplicated the 'while' loop and it doesn't check for all whitespace. I don't know exactly how this should work, the only way to check it try on on Windows. I suspect all trailing whitespace is stripped.
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #8 from Keming luoriyuhui21@163.com --- (In reply to David Kahurani from comment #5)
Hmmm... I think your diagnosis is correct, though seeing as there's a lot of whitespace after the name oleaut32
yes, "oleaut32" string in exe hex file is end with "0x0D 0x0A ",which is "\r \n", and display whitespace in log.
https://bugs.winehq.org/show_bug.cgi?id=54412
--- Comment #9 from Keming luoriyuhui21@163.com --- (In reply to David Kahurani from comment #7)
(In reply to Keming from comment #6)
Created attachment 73973 [details] proposed patch
maybe this patch can solve this problem
I think the patch will get it running, though, you have duplicated the 'while' loop and it doesn't check for all whitespace. I don't know exactly how this should work, the only way to check it try on on Windows. I suspect all trailing whitespace is stripped.
yes, I just simply check "0x0D" in patch, to test this issue.
https://bugs.winehq.org/show_bug.cgi?id=54412
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|critical |normal Keywords| |patch