user32: Check for NULL pointer in ToUnicodeEx.

This commit is contained in:
Sebastian Lackner 2015-04-06 10:18:04 +02:00 committed by Alexandre Julliard
parent 0601c86542
commit 1059ee3cba
1 changed files with 1 additions and 0 deletions

View File

@ -1022,6 +1022,7 @@ INT WINAPI ToUnicode(UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
INT WINAPI ToUnicodeEx(UINT virtKey, UINT scanCode, const BYTE *lpKeyState,
LPWSTR lpwStr, int size, UINT flags, HKL hkl)
{
if (!lpKeyState) return 0;
return USER_Driver->pToUnicodeEx(virtKey, scanCode, lpKeyState, lpwStr, size, flags, hkl);
}