dinput8/tests: Reduce pnp_driver_start todo_wine verbosity.
Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=51784 Signed-off-by: Rémi Bernon <rbernon@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
34b378fa9a
commit
3864c98f1e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue