https://bugs.winehq.org/show_bug.cgi?id=45664
Bug ID: 45664 Summary: 64-bit BattlEye 'BEDaisy' kernel service fails in driver entry point due to missing 'ntoskrnl.exe.PsGetProcessWow64Process' Product: Wine Version: 3.14 Hardware: x86-64 OS: Linux Status: NEW Severity: normal Priority: P2 Component: ntoskrnl Assignee: wine-bugs@winehq.org Reporter: focht@gmx.net Distribution: ---
Hello folks,
as it says. Only applies to 64-bit version of the driver.
--- snip --- $ pwd /home/focht/.wine/drive_c/users/Public/Daybreak Game Company/Installed Games/PlanetSide 2
$ WINEDEBUG=+seh,+relay,+ntoskrnl wine ./PlanetSide2_x64_BE.exe >>log.txt 2>&1 ... 004b:Call ntoskrnl.exe.IoCreateDriver(0055fa90,7f087b40a927) ret=7f087b40b5ec 004b:trace:ntoskrnl:IoCreateDriver (L"\Driver\BEDaisy", 0x7f087b40a927) ... 004b:Call KERNEL32.LoadLibraryW(000271c0 L"C:\Program Files (x86)\Common Files\BattlEye\BEDaisy.sys") ret=7f087b409cea 004b:Ret KERNEL32.LoadLibraryW() retval=140000000 ret=7f087b409cea ... 004b:Call driver init 0x140011000 (obj=0x26ee0,str=L"\Registry\Machine\System\CurrentControlSet\Services\BEDaisy") ... 004b:Call ntoskrnl.exe.MmGetSystemRoutineAddress(0055dfb0) ret=14024a0f8 ... 004b:Call KERNEL32.GetModuleHandleW(7f086d05f6f0 L"ntoskrnl.exe") ret=7f086d0517cc 004b:Ret KERNEL32.GetModuleHandleW() retval=7f086d030000 ret=7f086d0517cc 004b:Call KERNEL32.GetProcAddress(7f086d030000,000271c0 "PsGetProcessWow64Process") ret=7f086d0517ea 004b:Ret KERNEL32.GetProcAddress() retval=00000000 ret=7f086d0517ea 004b:Call KERNEL32.GetModuleHandleW(7f086d05f710 L"hal.dll") ret=7f086d05180d 004b:Ret KERNEL32.GetModuleHandleW() retval=00000000 ret=7f086d05180d ... 004b:fixme:ntoskrnl:MmGetSystemRoutineAddress L"PsGetProcessWow64Process" not found 004b:Ret ntoskrnl.exe.MmGetSystemRoutineAddress() retval=00000000 ret=14024a0f8 004b:Ret driver init 0x140011000 (obj=0x26ee0,str=L"\Registry\Machine\System\CurrentControlSet\Services\BEDaisy") retval=c0000001 ... 004b:Ret ntoskrnl.exe.IoCreateDriver() retval=c0000001 ret=7f087b40b5ec 004b:err:winedevice:async_create_driver failed to create driver L"BEDaisy": c0000001 --- snip ---
https://github.com/DarthTon/Blackbone/blob/master/src/BlackBoneDrv/Imports.h...
--- snip --- NTKERNELAPI PVOID NTAPI PsGetProcessWow64Process( IN PEPROCESS Process ); --- snip ---
It's only imported, not called (yet). Adding stub line to .spec should be fine. Although it wouldn't harm if a real stub is added that just dumps the parameter and returns NULL.
$ sha1sum PS2_setup.exe a49fec77dfe38ba6b6871aa832a50b7b10d48692 PS2_setup.exe
$ du -sh PS2_setup.exe 38M PS2_setup.exe
$ wine --version wine-3.14
Regards
https://bugs.winehq.org/show_bug.cgi?id=45664
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, obfuscation URL| |https://launch.daybreakgame | |s.com/installer/PS2_setup.e | |xe
https://bugs.winehq.org/show_bug.cgi?id=45664
zzzzzyzz@hacari.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |zzzzzyzz@hacari.org
https://bugs.winehq.org/show_bug.cgi?id=45664
mirh mirh@protonmail.ch changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |mirh@protonmail.ch
https://bugs.winehq.org/show_bug.cgi?id=45664
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish@gmail.com
--- Comment #1 from Austin English austinenglish@gmail.com --- Created attachment 62715 --> https://bugs.winehq.org/attachment.cgi?id=62715 stub
I can't easily test at the moment, does this work for you?
https://bugs.winehq.org/show_bug.cgi?id=45664
--- Comment #2 from Gijs Vermeulen gijsvrm@gmail.com --- (In reply to Austin English from comment #1)
I think you forgot to add (ptr) to the .spec file entry.
https://bugs.winehq.org/show_bug.cgi?id=45664
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Attachment #62715|0 |1 is obsolete| |
--- Comment #3 from Austin English austinenglish@gmail.com --- Created attachment 62730 --> https://bugs.winehq.org/attachment.cgi?id=62730 stub
Thanks Gijs, fixed.
https://bugs.winehq.org/show_bug.cgi?id=45664
--- Comment #4 from Austin English austinenglish@gmail.com --- https://source.winehq.org/git/wine.git/commitdiff/454ba90abff809ac68a987c72d...
https://bugs.winehq.org/show_bug.cgi?id=45664
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED Fixed by SHA1| |454ba90abff809ac68a987c72d3 | |1df714c4f764e
--- Comment #5 from Anastasius Focht focht@gmx.net --- Hello folks,
this is fixed by commit https://source.winehq.org/git/wine.git/commitdiff/454ba90abff809ac68a987c72d...
Thanks Austin
--- snip --- ... 0042:Call ntdll.RtlUnicodeStringToAnsiString(0033ddf0,0033df90,00000001) ret=7f8716bb2a0f 0042:Ret ntdll.RtlUnicodeStringToAnsiString() retval=00000000 ret=7f8716bb2a0f 0042:Call KERNEL32.GetModuleHandleW(7f8716bbeca0 L"ntoskrnl.exe") ret=7f8716bb2acc 0042:Ret KERNEL32.GetModuleHandleW() retval=7f8716b90000 ret=7f8716bb2acc 0042:Call KERNEL32.GetProcAddress(7f8716b90000,00024f30 "PsGetProcessWow64Process") ret=7f8716bb2ad9 0042:Ret KERNEL32.GetProcAddress() retval=7f8716ba3d54 ret=7f8716bb2ad9 0042:Call ntdll.RtlFreeAnsiString(0033ddf0) ret=7f8716bb2ae9 0042:Ret ntdll.RtlFreeAnsiString() retval=00000001 ret=7f8716bb2ae9 0042:trace:ntoskrnl:MmGetSystemRoutineAddress L"PsGetProcessWow64Process" -> 0x7f8716ba3d54 0042:Ret ntoskrnl.exe.MmGetSystemRoutineAddress() retval=7f8716ba3d54 ret=14024a0f8 0042:Call ntoskrnl.exe.MmGetSystemRoutineAddress(0033df90) ret=14024a122 ... --- snip ---
$ wine --version wine-3.19-194-gd3c9d7558b
Regards
https://bugs.winehq.org/show_bug.cgi?id=45664
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 3.20.
https://bugs.winehq.org/show_bug.cgi?id=45664
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- URL|https://launch.daybreakgame |https://web.archive.org/web |s.com/installer/PS2_setup.e |/20190301201256/https://lau |xe |nch.daybreakgames.com/insta | |ller/PS2_setup.exe