[Bug 51375] SCM erroneously tries to start 64-bit kernel drivers as 32-bit service due to incorrect handling of 'IMAGE_FILE_DLL' image characteristics in 'kernel32.dll.GetBinaryTypeW' (Protect DiSC 'acedrv11.sys')

WineHQ Bugzilla wine-bugs at winehq.org
Fri Jul 2 01:35:21 CDT 2021


https://bugs.winehq.org/show_bug.cgi?id=51375

Anastasius Focht <focht at gmx.net> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Fixed by SHA1|                            |02268cb290493c899b56996405c
                   |                            |a7c65a8046e3c
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #1 from Anastasius Focht <focht at gmx.net> ---
Hello folks,

this is fixed by commit
https://source.winehq.org/git/wine.git/commitdiff/02268cb290493c899b56996405ca7c65a8046e3c
("kernel32: Fix the DLL check in GetBinaryTypeW().").

Thanks Alexandre

--- snip ---
...
00ac:Call KERNEL32.GetBinaryTypeW(00168790
L"C:\\windows\\system32\\drivers\\acedrv11.sys",0119f330) ret=140006426
00ac:trace:module:GetBinaryTypeW
L"C:\\windows\\system32\\drivers\\acedrv11.sys"
...
00ac: get_mapping_info( handle=0158, access=00000001 )
00ac: get_mapping_info() = 0 { size=00056000, flags=01800000, shared_file=0000,
total=176,
image={base=00300000,entry_point=00329008,map_size=00056000,stack_size=00040000,stack_commit=00001000,zerobits=00000000,subsystem=00000001,subsystem_minor=0002,subsystem_major=0005,osversion_major=0006,osversion_minor=0000,image_charact=0022,dll_charact=0000,machine=8664,contains_code=1,image_flags=00,loader_flags=00000000,header_size=00000400,file_size=00051db8,checksum=0005db88},
name=L"" }
...
00ac:Ret  KERNEL32.GetBinaryTypeW() retval=00000001 ret=140006426
00ac:Call KERNEL32.GetSystemDirectoryW(0119f390,00000104) ret=1400065ed
00ac:Ret  KERNEL32.GetSystemDirectoryW() retval=00000013 ret=1400065ed
...
00ac:Call KERNEL32.CreateProcessW(00000000,00168790
L"C:\\windows\\system32\\winedevice.exe",00000000,00000000,100000000,00000400,001764b0,00000000,0119f080,0119f020)
ret=140006b7e 
...
00ac:Ret  KERNEL32.CreateProcessW() retval=00000001 ret=140006b7e 
...
0114:Call KERNEL32.LoadLibraryExW(00173f30
L"C:\\windows\\system32\\drivers\\acedrv11.sys",00000000,00001100) ret=003664d6 
...
0114:Ret  KERNEL32.LoadLibraryExW() retval=00dc0000 ret=003664d6
...
0114:Call driver init 0000000000DE9008
(obj=0000000000173D00,str=L"\\Registry\\Machine\\System\\CurrentControlSet\\Services\\acedrv11") 
...
--- snip ---

$ wine --version
wine-6.11-319-g52ba1b498a9

Regards

-- 
Do not reply to this email, post in Bugzilla using the
above URL to reply.
You are receiving this mail because:
You are watching all bug changes.



More information about the wine-bugs mailing list