user32: Fix a pointer cast warning.

This commit is contained in:
Alexandre Julliard 2012-01-16 18:07:09 +01:00
parent 55107912f0
commit 50480c72f3
1 changed files with 1 additions and 1 deletions

View File

@ -943,7 +943,7 @@ UINT WINAPI GetKeyboardLayoutList(INT nBuff, HKL *layouts)
rc = RegEnumKeyW(hKeyKeyboard, count, szKeyName, 9);
if (rc == ERROR_SUCCESS)
{
layout = (HKL)strtoulW(szKeyName,NULL,16);
layout = (HKL)(ULONG_PTR)strtoulW(szKeyName,NULL,16);
if (baselayout != 0 && layout == (HKL)baselayout)
baselayout = 0; /* found in the registry do not add again */
if (nBuff && layouts)