"Christian Eggers" ceggers@gmx.de writes:
- /* Try to get name of low level library from registry */
- /* UNICODE functions are not used here, because the final string is needed as ANSI */
Actually the final string should be in the Unix codepage, so you have to load it using Unicode and then convert to CP_UNIXCP.
- result = RegOpenKeyExA(HKEY_CURRENT_USER, "Software\Wine\DllWrappers", 0, KEY_READ, &key_handle);
The key should go under Software\Wine\ctapi32, I don't think there's a need to add a generic mechanism here.