[2/2] winspool.drv: GetDefaultPrinterW reads the value from data in registry

Detlef Riekenberg wine.dev at web.de
Wed Apr 9 13:13:44 CDT 2008


On Di, 2008-04-08 at 15:39 +0400, Konstantin Kondratyuk wrote:
> -    if (!GetProfileStringW(windowsW, deviceW, emptyStringW, buffer,
> len))
> +    if(!RegOpenKeyW(HKEY_CURRENT_USER, user_default_reg_key, &hKey) 
> +            && !RegQueryValueExW(hKey, keyname, NULL, &type,
> (LPBYTE)buffer, &bufsize))
> +    {
> +        TRACE("Get value from registry\n");
> +        RegCloseKey( hKey );
> +    }

win3.x and win9.x use only "win.ini".
We need to fix bug #4096, before we can switch to the Registry.

> +    else if (!GetProfileStringW(windowsW, deviceW, emptyStringW,
> buffer, len))

There is no need for a Fallback, when bug #4096 is fixed.


-- 
 
By by ... Detlef





More information about the wine-devel mailing list