Commit 407db366 authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

winex11.drv: Initialize buffer size.

parent 5c5e3332
...@@ -176,6 +176,7 @@ static BOOL read_registry_settings(DEVMODEW *dm) ...@@ -176,6 +176,7 @@ static BOOL read_registry_settings(DEVMODEW *dm)
return FALSE; return FALSE;
#define query_value(name, data) \ #define query_value(name, data) \
size = sizeof(DWORD); \
if (RegQueryValueExA(hkey, name, 0, &type, (LPBYTE)(data), &size) || \ if (RegQueryValueExA(hkey, name, 0, &type, (LPBYTE)(data), &size) || \
type != REG_DWORD || size != sizeof(DWORD)) \ type != REG_DWORD || size != sizeof(DWORD)) \
ret = FALSE ret = FALSE
......
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