[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-devel
Subject: Re: gdi32: first look for a printer driver name in the registry (try
From: Vitaliy Margolen <wine-devel () kievinfo ! com>
Date: 2011-02-27 21:00:50
Message-ID: 4D6ABB82.5090808 () kievinfo ! com
[Download RAW message or body]
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.
Vitaliy.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic