winex11.drv: Initialize buffer size.

This commit is contained in:
Dmitry Timoshkov 2007-11-01 21:09:03 +08:00 committed by Alexandre Julliard
parent 5c5e333284
commit 407db36684
1 changed files with 1 additions and 0 deletions

View File

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