[PATCH] winecfg: Remove bad default setting for logpixels registery

Nigel Liang ncliang at gmail.com
Thu Aug 2 18:33:23 CDT 2007


diff --git a/programs/winecfg/x11drvdlg.c b/programs/winecfg/x11drvdlg.c
index e7612be..5f6e2d6 100644
--- a/programs/winecfg/x11drvdlg.c
+++ b/programs/winecfg/x11drvdlg.c
@@ -245,7 +245,7 @@ static INT read_logpixels_reg(void)
 {
     DWORD dwLogPixels;
     char *buf  = get_reg_key(HKEY_LOCAL_MACHINE, logpixels_reg,
-                             "LogPixels", (const char *)MAXDPI);
+                             "LogPixels", NULL);
     dwLogPixels = *buf;
     HeapFree(GetProcessHeap(), 0, buf);
     return dwLogPixels;
-- 
1.4.1




More information about the wine-patches mailing list