gdi32: first look for a printer driver name in the registry (try 6)

Vitaliy Margolen wine-devel at
Sun Feb 27 15:00:50 CST 2011

On 02/25/2011 10:33 AM, André Hentschel wrote:
> Hi,
> Now you entirely remove the ini-stuff, why?
Where you seeing that? He still calling the same ini function(s) as before.

> and why do you use a OR (||) for the registry function?
What's the problem with that? Can you actually point to the piece of code 
that doesn't work correctly?

This piece of code:
> +    if ((RegOpenKeyExW(HKEY_CURRENT_USER, WinNT_CV_devicesW, 0, KEY_READ, &hKey) ||
> +        RegQueryValueExW(hKey, device, NULL, NULL, (LPBYTE) driver, &size)) &&
> +        !GetProfileStringW(devicesW, device, empty_strW, driver, size))

will first try registry, if that fails then try ini, and if that also fails 
will print warning. Both registry functions return ERROR_SUCCESS (which is 
0) on success.


More information about the wine-devel mailing list