Replace PROFILE_GetWineIniString by RegQueryValueExA
Dmitry Timoshkov
dmitry at baikal.ru
Wed Jun 13 09:52:50 CDT 2001
Hello.
Changelog:
Dmitry Timoshkov <dmitry at codeweavers.com>
Replace PROFILE_GetWineIniString by RegQueryValueExA.
--- cvs/hq/wine/dlls/gdi/printdrv.c Tue Jun 12 21:28:15 2001
+++ wine/dlls/gdi/printdrv.c Wed Jun 13 22:37:42 2001
@@ -459,7 +459,17 @@
if (!strncmp("LPR:",pszOutput,4))
sprintf(psCmd,"|lpr -P%s",pszOutput+4);
else
- PROFILE_GetWineIniString("spooler",pszOutput,"",psCmd,sizeof(psCmd));
+ {
+ HKEY hkey;
+ /* default value */
+ psCmd[0] = 0;
+ if(!RegOpenKeyA(HKEY_LOCAL_MACHINE, "Software\\Wine\\Wine\\Config\\spooler", &hkey))
+ {
+ DWORD type, count = sizeof(psCmd);
+ RegQueryValueExA(hkey, pszOutput, 0, &type, psCmd, &count);
+ RegCloseKey(hkey);
+ }
+ }
TRACE("Got printerSpoolCommand '%s' for output device '%s'\n",
psCmd, pszOutput);
if (!*psCmd)
More information about the wine-patches
mailing list