imm32/tests: Fix HKL comparison when cleaning up preload list.

This commit is contained in:
Rémi Bernon 2023-12-19 10:58:34 +01:00 committed by Alexandre Julliard
parent 1922902041
commit 54b8049de2

View file

@ -3721,7 +3721,7 @@ static void ime_cleanup( HKL hkl, BOOL free )
{
value_len = ARRAY_SIZE(value);
buffer_len = sizeof(buffer);
if (hkl != UlongToHandle( wcstoul( buffer, NULL, 16 ) )) continue;
if (HandleToUlong( hkl ) != wcstoul( buffer, NULL, 16 )) continue;
ret = RegDeleteValueW( hkey, value );
ok( !ret, "RegDeleteValueW returned %#lx, error %lu\n", ret, GetLastError() );
}