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.