[Bug 1019] IpGetProfileString16 returns wrong release string.

Wine Bugs wine-bugs at winehq.com
Mon Jun 23 05:37:28 CDT 2003


http://bugs.winehq.com/show_bug.cgi?id=1019





------- Additional Comments From z_god at wanadoo.nl  2003-23-06 05:37 -------
Bug comments restored from Gmane.org: 
 
Auto-generated debug report by Wine Quick Debug Report Maker Thingy: 
WINE Version:                Wine 20020804 
Windows Version:             None Installed 
Distribution:                RedHat 7.0 
Kernel Version:              2.2.16-22 
OS Type:                     Linux 
CPU:                         i686 
GCC Version:                 Configured with: ./configure  
Program:                     Microsoft Internet Explorer 6.0 
Program Type:                Win32 
Debug Options:               -debugmsg +setupapi 
Other Extra Commands Passed:  
Extra ./configure Commands:  None 
Wine Dependencies: 
        libntdll.dll.so => /usr/local/lib/libntdll.dll.so (0x40024000) 
        libwine.so => /usr/local/lib/libwine.so (0x4013f000) 
        libwine_unicode.so => /usr/local/lib/libwine_unicode.so (0x40157000) 
        libm.so.6 => /lib/libm.so.6 (0x40221000) 
        libc.so.6 => /lib/libc.so.6 (0x40241000) 
        libgcc_s.so.1 => /usr/lib/libgcc_s.so.1 (0x40362000) 
        libdl.so.2 => /lib/libdl.so.2 (0x4036b000) 
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) 
 
Last 200 lines of debug output follows: 
/usr/local/bin/wine: cannot find '/home/Matt/ie6setup.exe' 
 
I have a copy of the full debug report, if it is needed. 
Thank you! 
 
 
------- Additional Comments From tony_lambregts <at> telusplanet.net 2002-09-09 
19:47 ------- 
/usr/local/bin/wine: cannot find '/home/Matt/ie6setup.exe' 
                     ^^^^^^ ^^^^ 
No debuging information here since the program did not run. 
 
 
------- Additional Comments From mcbridematt <at> hotmail.com  2002-09-10 02:02 
------- 
Sorry for that.  
I downloaded IE 5.5 setup and it had that problem in there to, and microsoft 
claims IE 5.5 does run on Windows 95 (which wine returns from IpGetProfileString16). 
 
I remember that the original IE5 installer did work, but failed to install IE 
itself. 
 
trace:setupapi:GenFormStrWithoutPlaceHolders16 "2.5" -> "2.5" 
trace:setupapi:SetupOpenInfFileW L"E:\\IXP001.TMP\\IESetup.inf" -> 0x403ca7c8 
trace:setupapi:SetupFindNextMatchLineW (0x403ca7c8,L"Version",L"signature"): 
returning 0 
trace:setupapi:IpGetProfileString16 0x403ca7c8: section "version" entry 
"signature" ret "$Chicago$" 
trace:setupapi:GenFormStrWithoutPlaceHolders16 "2.5" -> "2.5" 
trace:setupapi:SetupOpenInfFileW L"E:\\IXP001.TMP\\IESetup.inf" -> 0x403c97c0 
trace:setupapi:SetupFindNextMatchLineW (0x403c97c0,L"Version",L"signature"): 
returning 0 
trace:setupapi:IpGetProfileString16 0x403c97c0: section "version" entry 
"signature" ret "$Chicago$" 
trace:setupapi:GenFormStrWithoutPlaceHolders16 "CustInstDestSection" -> 
"CustInstDestSection" 
trace:setupapi:SetupOpenInfFileW L"E:\\IXP001.TMP\\IESetup.inf" -> 0x403cc7d0 
trace:setupapi:SetupFindNextMatchLineW (0x403cc7d0,L"Version",L"signature"): 
returning 0 
trace:setupapi:IpGetProfileString16 0x403cc7d0: section "version" entry 
"signature" ret "$Chicago$" 
trace:setupapi:GenFormStrWithoutPlaceHolders16 
"HKLM,\"Software\\Microsoft\\Windows\\CurrentVersion\",\"ProgramFilesDir\",,\"%24%\\%LProgramF%\"" 
-> 
"HKLM,\"Software\\Microsoft\\Windows\\CurrentVersion\",\"ProgramFilesDir\",,\"C:\\\\Program 
Files\"" 
 
Notice IpGetProfileString16 returns $Chicago$, which is the codename for Windows 
95 and which Windows 95 uses to identify itself. (also appears in INF files) 
 
Searching for some answers, I looked to the wine debugger: 
$ winedbg ie6setup.exe --debugmsg +relay 
 
then backtraced: 
Wine-dbg>bt                                                                      
Backtrace:                                                                       
=>0 0x400e2853 (start_process+0x2a3 [process.c] in libntdll.dll.so) (ebp=405c6f2 
8)                                                                               
  1 0x400e7bbe (call_on_thread_stack+0x8e [sysdeps.c] in libntdll.dll.so) (ebp=4 
05c6ff4)                                                                         
  2 0x400e7d5c (SYSDEPS_CallOnStack+0x14 in libntdll.dll.so) (ebp=00000000)      
 
then disassembled it: 
Wine-dbg>disassemble                                                             
0x400e2853 (start_process+0x2a3 [process.c] in libntdll.dll.so): xorl   %eax,%ea 
x                                                                                
0x400e2855 (start_process+0x2a5 [process.c] in libntdll.dll.so): movl   %eax,%fs 
:0x60                                                                            
0x400e285b (start_process+0x2ab [process.c] in libntdll.dll.so): movl   $0x0,0x0 
(%esp)                                                                           
0x400e2862 (start_process+0x2b2 [process.c] in libntdll.dll.so): call   *0xfffff 
f6c(%ebp)                                                                        
0x400e2868 (start_process+0x2b8 [process.c] in libntdll.dll.so): subl   $4,%esp  
0x400e286b (start_process+0x2bb [process.c] in libntdll.dll.so): movl   %eax,0x0 
(%esp)                                                                           
0x400e286e (start_process+0x2be [process.c] in libntdll.dll.so): call   0x40058b 
f8 (_init+0x13c0 in libntdll.dll.so)                                             
0x400e2873 (start_process+0x2c3 [process.c] in libntdll.dll.so): xorl   %esi,%es 
i                                                                                
0x400e2875 (start_process+0x2c5 [process.c] in libntdll.dll.so): jmp    0x400e26 
51 (start_process+0xa1 [process.c] in libntdll.dll.so)                           
0x400e287a (start_process+0x2ca [process.c] in libntdll.dll.so): leal   0x0(%esi 
),%esi      
 
Ie6setup killed itself, then   wine's own debugger made an exception, and opened 
gdb: 
       (gdb) #0  0x402f1bf1 in ?? () 
(gdb) #1  0x404c7a42 in ?? () 
(gdb) #2  0x404e11b1 in ?? () 
(gdb) #3  0x400f2848 in ?? () 
(gdb) #4  0x400f1fbf in ?? () 
(gdb) #5  0x400f2382 in ?? () 
(gdb) #6  0x400ff372 in ?? () 
(gdb) #7  0x400ff8c1 in ?? () 
(gdb) #8  <signal handler called> 
(gdb) #9  0x404da1c2 in ?? () 
(gdb) #10 0x404e00f2 in ?? () 
(gdb) #11 0x404e1326 in ?? () 
(gdb) #12 0x404dece3 in ?? () 
(gdb) #13 0x404df117 in ?? () 
(gdb) #14 0x404c21a0 in ?? () 
(gdb) #15 0x400e2868 in ?? () 
(gdb) #16 0x400e7bbe in ?? () 

-- 
Configure bugmail: http://bugs.winehq.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the wine-bugs mailing list