Make sure we set dwOSVersionInfoSize before calling GetVersionInfo().
This commit is contained in:
parent
4e5903aa8f
commit
75c525c16f
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue