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;
|
OSVERSIONINFOW info;
|
||||||
DWORD dwProcVersion = GetProcessVersion(0);
|
DWORD dwProcVersion = GetProcessVersion(0);
|
||||||
|
|
||||||
|
info.dwOSVersionInfoSize = sizeof(OSVERSIONINFOW);
|
||||||
GetVersionExW( &info );
|
GetVersionExW( &info );
|
||||||
dwEmulatedVersion = MAKELONG( info.dwMinorVersion, info.dwMajorVersion );
|
dwEmulatedVersion = MAKELONG( info.dwMinorVersion, info.dwMajorVersion );
|
||||||
/* fixme: this may not be 100% correct; see discussion on the
|
/* fixme: this may not be 100% correct; see discussion on the
|
||||||
|
|
|
@ -172,6 +172,7 @@ LONG WINAPI ImmGetCompositionStringA(
|
||||||
hIMC, dwIndex, lpBuf, dwBufLen
|
hIMC, dwIndex, lpBuf, dwBufLen
|
||||||
);
|
);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
|
||||||
GetVersionExA( &version );
|
GetVersionExA( &version );
|
||||||
switch(version.dwPlatformId)
|
switch(version.dwPlatformId)
|
||||||
{
|
{
|
||||||
|
@ -195,6 +196,7 @@ LONG WINAPI ImmGetCompositionStringW(
|
||||||
hIMC, dwIndex, lpBuf, dwBufLen
|
hIMC, dwIndex, lpBuf, dwBufLen
|
||||||
);
|
);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
|
||||||
GetVersionExA( &version );
|
GetVersionExA( &version );
|
||||||
switch(version.dwPlatformId)
|
switch(version.dwPlatformId)
|
||||||
{
|
{
|
||||||
|
@ -357,6 +359,7 @@ UINT WINAPI ImmGetVirtualKey(HWND hWnd)
|
||||||
OSVERSIONINFOA version;
|
OSVERSIONINFOA version;
|
||||||
FIXME("(0x%08x): stub\n", hWnd);
|
FIXME("(0x%08x): stub\n", hWnd);
|
||||||
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
||||||
|
version.dwOSVersionInfoSize = sizeof(OSVERSIONINFOA);
|
||||||
GetVersionExA( &version );
|
GetVersionExA( &version );
|
||||||
switch(version.dwPlatformId)
|
switch(version.dwPlatformId)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue