https://bugs.winehq.org/show_bug.cgi?id=40178
Bug ID: 40178 Summary: Native dll packet.dll fail on PacketGetAdapterNames Product: Wine Version: 1.9.3 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: zhangjianqiu13@gmail.com Distribution: ---
Created attachment 53683 --> https://bugs.winehq.org/attachment.cgi?id=53683 Source code for my testcase
When try to use native packet.dll to run a demo program that calls PacketGetAdapterNames and then return the result in a string , it fails on windows native packet.dll
Test program source code and binary file will be produced in attachment
I see from relay log that PacketGetAdapterNames calls a series of Reg* functions
and a lot of entries cannot be found on wine reg , So I import the "HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Class{4d36e972-e325-11ce-bfc1-08002be10318}" Key Entry from Windows XP, then the function still fails
The key export file will be attached below
The two versions wine relay log (+relay,+ntdll,+tid), one not import the missing register entry, one imported, will be attached below
https://bugs.winehq.org/show_bug.cgi?id=40178
zhangjianqiu13@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jactry92@gmail.com, | |zhangjianqiu13@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40178
--- Comment #1 from zhangjianqiu13@gmail.com --- Created attachment 53684 --> https://bugs.winehq.org/attachment.cgi?id=53684 Binary file for the testcase
https://bugs.winehq.org/show_bug.cgi?id=40178
zhangjianqiu13@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Native dll packet.dll fail |packet.dll from wpcap.dll |on PacketGetAdapterNames |fail on | |PacketGetAdapterNames
https://bugs.winehq.org/show_bug.cgi?id=40178
zhangjianqiu13@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|packet.dll from wpcap.dll |packet.dll from winpcap |fail on |fail on |PacketGetAdapterNames |PacketGetAdapterNames
https://bugs.winehq.org/show_bug.cgi?id=40178
--- Comment #2 from zhangjianqiu13@gmail.com --- Created attachment 53685 --> https://bugs.winehq.org/attachment.cgi?id=53685 relay log with no import make
https://bugs.winehq.org/show_bug.cgi?id=40178
zhangjianqiu13@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC|zhangjianqiu13@gmail.com |
--- Comment #3 from zhangjianqiu13@gmail.com --- Comment on how to reproduce the bug
Download winpcap http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe
Install it on windows, and then copy System32/Packet.dll to WINEPREFIX/drive_c/system32/
Then use winecfg set packet.dll to native
Then you should get the relay log
https://bugs.winehq.org/show_bug.cgi?id=40178
--- Comment #4 from zhangjianqiu13@gmail.com --- Created attachment 53686 --> https://bugs.winehq.org/attachment.cgi?id=53686 relay log with import reg entry make
https://bugs.winehq.org/show_bug.cgi?id=40178
--- Comment #5 from Jactry Zeng jactry92@gmail.com --- I can reproduce it.
reproduce: 1. Download and install winpcap in a temporary wineprefix http://www.winpcap.org/install/bin/WinPcap_4_1_3.exe ;
2. copy packet.dll from the temporary wineprefix's 'drive_c/windows/system32' to '.wine/drive_c/windows/system32/';
3. $ wine GetAdapterNamesTest.exe and you will see in output: ``` Testing PacketGetAdapterNames... err:winedevice:ServiceMain driver L"NPF" failed to load err:winedevice:ServiceMain driver L"NPF" failed to load err:winedevice:ServiceMain driver L"NPF" failed to load PacketGetAdapterNames Failed with ERROR_CODE 0x7A No Enougth Space! Please Allocate at least 0 Bytes ```
Thanks for report! :-)