Make sure we set dwOSVersionInfoSize before calling GetVersionInfo().
diff --git a/controls/edit.c b/controls/edit.c
index 5920bf4..0e2a1f4 100644
--- a/controls/edit.c
+++ b/controls/edit.c
@@ -361,6 +361,7 @@
OSVERSIONINFOW info;
DWORD dwProcVersion = GetProcessVersion(0);
+ info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
GetVersionExW( &info );
dwEmulatedVersion = MAKELONG( info.dwMinorVersion, info.dwMajorVersion );
/* fixme: this may not be 100% correct; see discussion on the
diff --git a/dlls/imm32/imm.c b/dlls/imm32/imm.c
index 45153ca..4a01373 100644
--- a/dlls/imm32/imm.c
+++ b/dlls/imm32/imm.c
@@ -172,6 +172,7 @@
hIMC, dwIndex, lpBuf, dwBufLen
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{
@@ -195,6 +196,7 @@
hIMC, dwIndex, lpBuf, dwBufLen
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{
@@ -357,6 +359,7 @@
OSVERSIONINFOA version;
FIXME("(0x%08x): stub\n", hWnd);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{