wordpad: Fix invalid pointer usage.
This commit is contained in:
parent
9741751962
commit
c7278c21bd
|
@ -99,9 +99,8 @@ void registry_read_winrect(RECT* rc)
|
||||||
HKEY hKey;
|
HKEY hKey;
|
||||||
DWORD size = sizeof(RECT);
|
DWORD size = sizeof(RECT);
|
||||||
|
|
||||||
ZeroMemory(&rc, sizeof(RECT));
|
|
||||||
if(registry_get_handle(&hKey, 0, (LPWSTR)key_options) != ERROR_SUCCESS ||
|
if(registry_get_handle(&hKey, 0, (LPWSTR)key_options) != ERROR_SUCCESS ||
|
||||||
RegQueryValueExW(hKey, var_framerect, 0, NULL, (LPBYTE)&rc, &size) !=
|
RegQueryValueExW(hKey, var_framerect, 0, NULL, (LPBYTE)rc, &size) !=
|
||||||
ERROR_SUCCESS || size != sizeof(RECT))
|
ERROR_SUCCESS || size != sizeof(RECT))
|
||||||
{
|
{
|
||||||
rc->top = 0;
|
rc->top = 0;
|
||||||
|
|
Loading…
Reference in New Issue