Commit 3864c98f authored by Rémi Bernon's avatar Rémi Bernon Committed by Alexandre Julliard

dinput8/tests: Reduce pnp_driver_start todo_wine verbosity.

parent 34b378fa
......@@ -499,11 +499,15 @@ static BOOL pnp_driver_start( const WCHAR *resource )
WCHAR path[MAX_PATH], filename[MAX_PATH];
SC_HANDLE manager, service;
const CERT_CONTEXT *cert;
int old_mute_threshold;
BOOL ret, need_reboot;
HANDLE catalog;
HDEVINFO set;
FILE *f;
old_mute_threshold = winetest_mute_threshold;
winetest_mute_threshold = 1;
load_resource( resource, filename );
ret = MoveFileExW( filename, L"winetest.sys", MOVEFILE_COPY_ALLOWED | MOVEFILE_REPLACE_EXISTING );
ok( ret, "failed to move file, error %u\n", GetLastError() );
......@@ -536,6 +540,7 @@ static BOOL pnp_driver_start( const WCHAR *resource )
ok( ret, "Failed to delete file, error %u\n", GetLastError() );
ret = DeleteFileW( L"winetest.sys" );
ok( ret, "Failed to delete file, error %u\n", GetLastError() );
winetest_mute_threshold = old_mute_threshold;
return FALSE;
}
......@@ -584,6 +589,8 @@ static BOOL pnp_driver_start( const WCHAR *resource )
CloseServiceHandle( service );
CloseServiceHandle( manager );
winetest_mute_threshold = old_mute_threshold;
return ret || GetLastError() == ERROR_SERVICE_ALREADY_RUNNING;
}
......
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