From 407db36684b879c15247b5a5aed6610da40a647c Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Thu, 1 Nov 2007 21:09:03 +0800 Subject: [PATCH] winex11.drv: Initialize buffer size. --- dlls/winex11.drv/settings.c | 1 + 1 file changed, 1 insertion(+) diff --git a/dlls/winex11.drv/settings.c b/dlls/winex11.drv/settings.c index d530f9bc167..116bf1506ef 100644 --- a/dlls/winex11.drv/settings.c +++ b/dlls/winex11.drv/settings.c @@ -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