[Bug 21023] SetupDiOpenDevRegKey() returns wrong HKEY

wine-bugs at winehq.org wine-bugs at winehq.org
Wed Dec 16 04:10:57 CST 2009


http://bugs.winehq.org/show_bug.cgi?id=21023





--- Comment #4 from Mauricio de Alencar <mdealencar at gmail.com>  2009-12-16 04:10:57 ---
The application that I need which depends on this is an utility program that
configures an USB DAQ module (Novus myPCLab). The module works well with the
ti_usb_3410_5052 kernel module and can be accessed from wine through a COM_
port pointing to /dev/ttyACM_.

The config program, though, browses through the registry to locate the device,
and fails because of this bug.

My workaround was to create the necessary registry values inside the wrong HKEY
returned.

By the way, the example program can be compiled with:

i586-mingw32msvc-gcc -o bug_example_SetupDiOpenDevRegKey.exe
bug_example_SetupDiOpenDevRegKey.c -lsetupapi

It will list the subkeys of the HKEY returned from SetupDiOpenDevRegKey().

Under Wine it shows three registry keys, among them the "Device Parameters"
one.

Under Windows it shows nothing (the "Device Parameters" has no subkeys).

-- 
Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
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