https://bugs.winehq.org/show_bug.cgi?id=44749
Bug ID: 44749 Summary: Sentinel HASP 'hardlock.sys' kernel driver expects ntdll.RtlCheckRegistryKey to return STATUS_SUCCESS on empty path Product: Wine Version: 3.3 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntdll Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
to separate two different issues from bug 44641
Technically it was https://source.winehq.org/git/wine.git/commitdiff/f07e8ca8f01106b6d41a933f0a... ("ntdll: Fix RtlCheckRegistryKey when called with empty path.") which returns 'STATUS_SUCCESS' now, causing the driver to execute a different code path, not calling 'ntoskrnl.exe.RtlCreateRegistryKey' at this point.
Bug 44641 is about missing 'ntdll.RtlCreateRegistryKey' API -> fixed by https://source.winehq.org/git/wine.git/commitdiff/535419a2bf8da3fd21cfdede44...
Created this ticket to avoid rechristening bug 44641
--- snip --- $ pwd /home/focht/.wine/drive_c/Program Files/Minitab/Minitab 16
$ WINEDEBUG=+seh,+relay,+winedevice,+ntoskrnl wine ./Mtb.exe >>log.txt 2>&1 ... 0019:Call ntoskrnl.exe.RtlCheckRegistryKey(00000001,0065fb20) ret=007a8edd 0019:Call ntdll.RtlCheckRegistryKey(00000001,0065fb20) ret=7bc7e2bb 0019:Ret ntdll.RtlCheckRegistryKey() retval=c0000034 ret=7bc7e2bb 0019:Ret ntoskrnl.exe.RtlCheckRegistryKey() retval=c0000034 ret=007a8edd 0019:Call KERNEL32.RaiseException(80000100,00000001,00000002,0065fad4) ret=7ecd21a7 0019:trace:seh:raise_exception code=80000100 flags=1 addr=0x7b44667f ip=7b44667f tid=0019 0019:trace:seh:raise_exception info[0]=7ecd21c0 0019:trace:seh:raise_exception info[1]=7ecd6098 wine: Call from 0x7b44667f to unimplemented function ntoskrnl.exe.RtlCreateRegistryKey, aborting 0019:trace:seh:call_vectored_handlers calling handler at 0x7ecc9e95 code=80000100 flags=1 0019:trace:seh:call_vectored_handlers handler at 0x7ecc9e95 returned 0 0019:trace:seh:call_stack_handlers calling handler at 0x7bcb023c code=80000100 flags=1 --- snip ---
$ sha1sum MTBen1610su.exe f457d13475a783a0d2fff5566c0279640ba26bc6 MTBen1610su.exe
$ du -sh MTBen1610su.exe 93M MTBen1610su.exe
$ wine --version wine-3.2-346-gb1aee9c391
Regards
https://bugs.winehq.org/show_bug.cgi?id=44749
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, hardware, | |obfuscation URL| |http://www.mesacg.com/Downl | |oads/MTBen1610su.exe Fixed by SHA1| |f07e8ca8f01106b6d41a933f0ac | |393b30d505bad Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #1 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/f07e8ca8f01106b6d41a933f0a...
Thanks Stefan
--- snip --- ... 0019:Call ntoskrnl.exe.RtlCheckRegistryKey(00000001,0065fb20) ret=007a8edd 0019:Call ntdll.RtlCheckRegistryKey(00000001,0065fb20) ret=7bc7e547 0019:Ret ntdll.RtlCheckRegistryKey() retval=00000000 ret=7bc7e547 0019:Ret ntoskrnl.exe.RtlCheckRegistryKey() retval=00000000 ret=007a8edd 0019:Call ntoskrnl.exe.PsSetCreateProcessNotifyRoutine(007a0a6c,00000000) ret=007a8f4e 0019:fixme:ntoskrnl:PsSetCreateProcessNotifyRoutine stub: 0x7a0a6c 0 0019:Ret ntoskrnl.exe.PsSetCreateProcessNotifyRoutine() retval=00000000 ret=007a8f4e 0019:Call ntoskrnl.exe.ExAllocatePoolWithTag(00000001,00000090,6c766f48) ret=007add79 ... 0019:trace:ntoskrnl:ExAllocatePoolWithTag 144 pool 1 -> 0x11f800 0019:Ret ntoskrnl.exe.ExAllocatePoolWithTag() retval=0011f800 ret=007add79 0019:trace:seh:raise_exception code=c0000096 flags=0 addr=0x7ecf79b5 ip=7ecf79b5 tid=0019 0019:trace:seh:raise_exception eax=0011f800 ebx=0011d3b0 ecx=00000078 edx=00662f54 esi=0011cb20 edi=7ecb0000 0019:trace:seh:raise_exception ebp=0065fbb8 esp=0065fb90 cs=0023 ds=002b es=002b fs=0063 gs=006b flags=00010246 0019:trace:seh:call_vectored_handlers calling handler at 0x7ecc9f51 code=c0000096 flags=0 0019:trace:seh:call_vectored_handlers handler at 0x7ecc9f51 returned 0 0019:trace:seh:call_stack_handlers calling handler at 0x7bcb057c code=c0000096 flags=0 0019:Call KERNEL32.UnhandledExceptionFilter(0065f694) ret=7bcb05b7 0019:trace:seh:start_debugger Starting debugger "winedbg --auto 17 76" ... --- snip ---
It now runs into bug 44496
$ wine --version wine-3.3-263-gbf7b21ec7b
Regards
https://bugs.winehq.org/show_bug.cgi?id=44749
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.4.
https://bugs.winehq.org/show_bug.cgi?id=44749
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |3.0.x
https://bugs.winehq.org/show_bug.cgi?id=44749
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|3.0.x |---
--- Comment #3 from Michael Stefaniuc mstefani@winehq.org --- Removing the 3.0.x milestone from bugs included in 3.0.1.
https://bugs.winehq.org/show_bug.cgi?id=44749
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.mesacg.com/Downl |https://web.archive.org/web |oads/MTBen1610su.exe |/20210318190949/http://www. | |mesacg.com/Downloads/MTBen1 | |610su.exe