Make sure we set dwOSVersionInfoSize before calling GetVersionInfo().

This commit is contained in:
James Juran 2001-05-18 20:56:37 +00:00 committed by Alexandre Julliard
parent 4e5903aa8f
commit 75c525c16f
2 changed files with 4 additions and 0 deletions

View File

@ -361,6 +361,7 @@ static DWORD get_app_version(void)
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

View File

@ -172,6 +172,7 @@ LONG WINAPI ImmGetCompositionStringA(
hIMC, dwIndex, lpBuf, dwBufLen
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{
@ -195,6 +196,7 @@ LONG WINAPI ImmGetCompositionStringW(
hIMC, dwIndex, lpBuf, dwBufLen
);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{
@ -357,6 +359,7 @@ UINT WINAPI ImmGetVirtualKey(HWND hWnd)
OSVERSIONINFOA version;
FIXME("(0x%08x): stub\n", hWnd);
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
GetVersionExA( &version );
switch(version.dwPlatformId)
{