https://bugs.winehq.org/show_bug.cgi?id=36060
Bug ID: 36060 Summary: Hawking control center driver install tool crashes during installation Product: Wine Version: 1.7.17 Hardware: x86 URL: http://hawkingtech.com/products/downloadfile/983.html OS: Linux Status: NEW Keywords: download Severity: normal Priority: P2 Component: shlwapi Assignee: wine-bugs@winehq.org Reporter: austinenglish@gmail.com
Created attachment 48241 --> https://bugs.winehq.org/attachment.cgi?id=48241 terminal output/backtrace
fixme:shell:SHRegCreateUSKeyW unsupported flags 0x00000004 wine: Unhandled page fault on read access to 0x00000004 at address 0x7e955e07 (thread 008b), starting debugger... .. Backtrace: =>0 0x7e955e07 SHRegCloseUSKey+0x17(hUSKey=<couldn't compute location>) [/home/austin/wine-git/dlls/shlwapi/reg.c:196] in shlwapi (0x0033f858)
https://bugs.winehq.org/show_bug.cgi?id=36060
--- Comment #1 from Austin English austinenglish@gmail.com --- austin@aw25 ~ $ du -h software_Win_HMPS2U.zip 8.4M software_Win_HMPS2U.zip austin@aw25 ~ $ sha1sum software_Win_HMPS2U.zip 1609b8f9807be92cba92814cafed8b8dc1f5bf85 software_Win_HMPS2U.zip austin@aw25 ~ $ wine --version wine-1.7.17-42-g24c5728
https://bugs.winehq.org/show_bug.cgi?id=36060
driuli@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |driuli@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=36060
super_man@post.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |super_man@post.com
--- Comment #2 from super_man@post.com --- still an issue 1.7.50
https://bugs.winehq.org/show_bug.cgi?id=36060
--- Comment #3 from super_man@post.com --- I have a theory of the problem.
If it's not correct I at least have an hack to prevent it which could be real fix too.
I think the problem could be here.
fixme:shell:SHRegCreateUSKeyW unsupported flags 0x00000004
Wine doesn't really do anything.
http://source.winehq.org/git/wine.git/blob/253a587e471a653e1b5ed590280452f43...
It returns success.
And next the program wants to SHRegCloseUSKey key that was never created.
To prevent the crash here I created NULL check.
--- dlls/shlwapi/reg.c | 1 + 1 file changed, 1 insertion(+)
diff --git a/dlls/shlwapi/reg.c b/dlls/shlwapi/reg.c index 1653b80..3fbc9b8 100644 --- a/dlls/shlwapi/reg.c +++ b/dlls/shlwapi/reg.c @@ -193,6 +193,7 @@ LONG WINAPI SHRegCloseUSKey( LPSHUSKEY hKey = hUSKey; LONG ret = ERROR_SUCCESS;
+ if(hUSKey == NULL) return ret; if (hKey->HKCUkey) ret = RegCloseKey(hKey->HKCUkey); if (hKey->HKCUstart && hKey->HKCUstart != HKEY_CURRENT_USER)
https://bugs.winehq.org/show_bug.cgi?id=36060
--- Comment #4 from Bruno Jesus 00cpxxx@gmail.com --- Thanks for the analysis, that indeed seems to be the problem. I'll do some tests for Windows to check the results.
https://bugs.winehq.org/show_bug.cgi?id=36060
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |Installer Summary|Hawking control center |Hawking Control Center |driver install tool crashes |driver installer tool |during installation |crashes (SHRegCloseUSKey | |crashes on NULL key)
--- Comment #5 from Bruno Jesus 00cpxxx@gmail.com --- Patch sent: http://source.winehq.org/patches/data/114251
https://bugs.winehq.org/show_bug.cgi?id=36060
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |ffb4d151174be47b728099e0d20 | |3474e5e6d1b5a Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #6 from Bruno Jesus 00cpxxx@gmail.com --- Fixed by ffb4d151174be47b728099e0d203474e5e6d1b5a.
https://bugs.winehq.org/show_bug.cgi?id=36060
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.52.
https://bugs.winehq.org/show_bug.cgi?id=36060
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |compunuts@yahoo.com
--- Comment #8 from Anastasius Focht focht@gmx.net --- *** Bug 39405 has been marked as a duplicate of this bug. ***