Commit 4a21ad9f authored by Nigel Liang's avatar Nigel Liang Committed by Alexandre Julliard

winecfg: Fix crash in graphics tab.

parent 6e56e37b
...@@ -246,7 +246,7 @@ static INT read_logpixels_reg(void) ...@@ -246,7 +246,7 @@ static INT read_logpixels_reg(void)
DWORD dwLogPixels; DWORD dwLogPixels;
char *buf = get_reg_key(HKEY_LOCAL_MACHINE, logpixels_reg, char *buf = get_reg_key(HKEY_LOCAL_MACHINE, logpixels_reg,
"LogPixels", NULL); "LogPixels", NULL);
dwLogPixels = *buf; dwLogPixels = buf ? *buf : DEFDPI;
HeapFree(GetProcessHeap(), 0, buf); HeapFree(GetProcessHeap(), 0, buf);
return dwLogPixels; return dwLogPixels;
} }
......
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