https://bugs.winehq.org/show_bug.cgi?id=40411
Bruno Jesus 00cpxxx@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Resolution|INVALID |--- Status|CLOSED |UNCONFIRMED
--- Comment #20 from Bruno Jesus 00cpxxx@gmail.com --- (In reply to Joerg Schiermeier from comment #18)
Created attachment 55282 [details] Logfile for WINEDEBUG=+relay,+reg
Starting at line 282163:
002d:Call msvcrt.fputs(00178aa8 "\r\n[HKEY_LOCAL_MACHINE\Software\Microsoft\Software\Microsoft\Shared Tools]\r\n",7ee223a0) ret=7eeb6e64
002d:Ret msvcrt.fputs() retval=00000000 ret=7eeb6e64 002d:Call ntdll.RtlFreeHeap(00110000,00000000,00178aa8) ret=7eeb6e78 002d:Ret ntdll.RtlFreeHeap() retval=00000001 ret=7eeb6e78 002d:Call advapi32.RegEnumValueW(0000005c,00000000,00179860,0032f6c0,00000000,0032f6bc,0017a068,0032f6c4) ret=7eeb70a6
trace:reg:RegEnumValueW (0x5c,0,0x179860,0x32f6c0,(nil),0x32f6bc,0x17a068,0x32f6c4) trace:reg:NtEnumerateValueKey (0x5c,0,1,0x32f43c,256) 002d:Ret advapi32.RegEnumValueW() retval=00000103 ret=7eeb70a6 002d:Call advapi32.RegEnumKeyExW(0000005c,00000000,001790e4,0032f6c4,00000000,00000000,00000000,00000000) ret=7eeb7114
trace:reg:RegEnumKeyExW (0x5c,0,0x1790e4,0x32f6c4(954),(nil),(nil),(nil),(nil)) 002d:Ret advapi32.RegEnumKeyExW() retval=00000000 ret=7eeb7114 002d:Call advapi32.RegOpenKeyW(0000005c,001790e4 L"MSInfo",0032f6c8) ret=7eeb7552 trace:reg:open_key (0x5c,L"MSInfo",2000000,0x32f6c8) trace:reg:open_key <- (nil) 002d:Ret advapi32.RegOpenKeyW() retval=00000002 ret=7eeb7552 002d:Call KERNEL32.FormatMessageW(00001100,00000000,00000000,00000000,0032f628,00000000,00000000) ret=7eeb65ad
002d:Ret KERNEL32.FormatMessageW() retval=0000000a ret=7eeb65ad 002d:Call KERNEL32.GetStdHandle(fffffff5) ret=7eeb59c1 002d:Ret KERNEL32.GetStdHandle() retval=0000001b ret=7eeb59c1 002d:Call KERNEL32.WriteConsoleW(0000001b,00119d20,0000000a,0032f5e8,00000000) ret=7eeb59ce
002d:Ret KERNEL32.WriteConsoleW() retval=00000001 ret=7eeb59ce 002d:Call KERNEL32.LocalFree(00119d20) ret=7eeb65e9 002d:Ret KERNEL32.LocalFree() retval=00000000 ret=7eeb65e9 002d:Call msvcrt.exit(00000001) ret=7eeb65f0
For unknown reasons when attempting to open the key HKEY_LOCAL_MACHINE\Software\Microsoft\Shared Tools\MSInfo
Wine gives up due to an open_key error (trace:reg:open_key <- (nil)) followed by a call to exit(1), that does not happen here:
0009:Call advapi32.RegOpenKeyW(00000054,001676d6 L"MSInfo",0032f8c8) ret=7ecd61e3 trace:reg:open_key (0x54,L"MSInfo",2000000,0x32f8c8) trace:reg:open_key <- 0x58
This error comes from https://source.winehq.org/source/dlls/ntdll/reg.c#0123 Which in turn comes from https://source.winehq.org/source/server/registry.c#0745
Since regedit is printing "Success" in the console it probably means GetLastError returned zero, I don't know. There are a few different places in https://source.winehq.org/source/programs/regedit/regproc.c that call exit(1).
I don't know the real cause of the problem but there is a real bug here since it prints Success instead of the real error.