https://bugs.winehq.org/show_bug.cgi?id=40630
Bug ID: 40630 Summary: AdabiyyatArabi application trys to enumerate system disk drives and fails Product: Wine Version: 1.9.9 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: setupapi Assignee: wine-bugs@winehq.org Reporter: bob.mt.wya@gmail.com Distribution: ---
Created attachment 54499 --> https://bugs.winehq.org/attachment.cgi?id=54499 backtrace
I am supporting a user to file a WineHQ bug... See https://forum.winehq.org/viewtopic.php?f=8&t=26796 He tested it using Wine version: wine-1.9.8 (Staging)
The application he is trying to run enumerates the System Disk Drives ( using class GUID "{4d36e967-e325-11ce-bfc1-08002be10318}" ). Wine does not currently support enumerating DIGCF_PRESENT (all present drives) for SetupDiGetClassDevs().
However the application doesn't check the return value of SetupDiEnumDeviceInfo(). For Wine this will return FALSE on the first call. Apparently assuming that all systems must have at least ONE disk drive!
The call to: SetupDiGetDeviceRegistryProperty() naturally fails - as the pointer (DeviceInfoData) will be invalid.
https://bugs.winehq.org/show_bug.cgi?id=40630
Robert Walker bob.mt.wya@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|1.9.9 |1.9.8
https://bugs.winehq.org/show_bug.cgi?id=40630
--- Comment #1 from Robert Walker bob.mt.wya@gmail.com --- Created attachment 54500 --> https://bugs.winehq.org/attachment.cgi?id=54500 console log
https://bugs.winehq.org/show_bug.cgi?id=40630
--- Comment #2 from Robert Walker bob.mt.wya@gmail.com --- Created attachment 54501 --> https://bugs.winehq.org/attachment.cgi?id=54501 Windows C Source (setupapi test case)
I wrote a little Windows setupapi C application test case. It just tries to enumerate all the disk drives on a system and print the friendly names for them.
When compiled to a Windows executable it normally returns at least ONE drive result on a native Windows system. Under Wine this executable returns NO disk drive results.
https://bugs.winehq.org/show_bug.cgi?id=40630
winetest@luukku.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |winetest@luukku.com
--- Comment #3 from winetest@luukku.com --- Based on the analyze it seems that something needs to be changed over here
http://source.winehq.org/git/wine.git/blob/1dedd90e8c56ff61772915d575a43ad6c...
https://bugs.winehq.org/show_bug.cgi?id=40630
ojzim0@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ojzim0@gmail.com
https://bugs.winehq.org/show_bug.cgi?id=40630
--- Comment #4 from ojzim0@gmail.com --- I have tested this in wine 2.2. The problem also exists and bug not fixed...
https://bugs.winehq.org/show_bug.cgi?id=40630
--- Comment #5 from ojzim0@gmail.com --- I have fixed this problem using non-standard method. Who can fix that and send fixed source code to wine github, do this. You can see what are I do: https://forum.winehq.org/viewtopic.php?f=8&t=26796&p=109808#p109808