mirror of
https://github.com/reactos/wine.git
synced 2025-01-26 22:24:37 +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…
x
Reference in New Issue
Block a user