mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
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;
|
||||
char *buf = get_reg_key(HKEY_LOCAL_MACHINE, logpixels_reg,
|
||||
"LogPixels", NULL);
|
||||
dwLogPixels = *buf;
|
||||
dwLogPixels = buf ? *buf : DEFDPI;
|
||||
HeapFree(GetProcessHeap(), 0, buf);
|
||||
return dwLogPixels;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue