Commit 303ffd2f authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Replace PROFILE_GetWineIniString by RegQueryValueExA.

parent 9c0ae56d
...@@ -459,7 +459,17 @@ static int CreateSpoolFile(LPCSTR pszOutput) ...@@ -459,7 +459,17 @@ static int CreateSpoolFile(LPCSTR pszOutput)
if (!strncmp("LPR:",pszOutput,4)) if (!strncmp("LPR:",pszOutput,4))
sprintf(psCmd,"|lpr -P%s",pszOutput+4); sprintf(psCmd,"|lpr -P%s",pszOutput+4);
else 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", TRACE("Got printerSpoolCommand '%s' for output device '%s'\n",
psCmd, pszOutput); psCmd, pszOutput);
if (!*psCmd) if (!*psCmd)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment