winecfg: Fix crash in graphics tab.
This commit is contained in:
parent
6e56e37b2d
commit
4a21ad9f5c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue