Commit 87839a41 authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

win32u/tests: Test NtUserIsMouseInPointerEnabled syscall.

parent 9443bde5
......@@ -826,19 +826,31 @@ static void test_NtUserEnableMouseInPointer_process( const char *arg )
DWORD enable = strtoul( arg, 0, 10 );
BOOL ret;
ret = NtUserIsMouseInPointerEnabled();
ok( !ret, "NtUserIsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
ret = NtUserEnableMouseInPointer( enable );
todo_wine
ok( ret, "NtUserEnableMouseInPointer failed, error %lu\n", GetLastError() );
ret = NtUserIsMouseInPointerEnabled();
todo_wine_if(enable)
ok( ret == enable, "NtUserIsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
SetLastError( 0xdeadbeef );
ret = NtUserEnableMouseInPointer( !enable );
ok( !ret, "NtUserEnableMouseInPointer succeeded\n" );
todo_wine
ok( GetLastError() == ERROR_ACCESS_DENIED, "got error %lu\n", GetLastError() );
ret = NtUserIsMouseInPointerEnabled();
todo_wine_if(enable)
ok( ret == enable, "NtUserIsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
ret = NtUserEnableMouseInPointer( enable );
todo_wine
ok( ret, "NtUserEnableMouseInPointer failed, error %lu\n", GetLastError() );
ret = NtUserIsMouseInPointerEnabled();
todo_wine_if(enable)
ok( ret == enable, "NtUserIsMouseInPointerEnabled returned %u, error %lu\n", ret, GetLastError() );
}
static void test_NtUserEnableMouseInPointer( char **argv, BOOL enable )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment