dsound/tests: Fix failure on Win9x and NT4.

This commit is contained in:
Paul Vriens 2008-09-21 18:59:34 +02:00 committed by Alexandre Julliard
parent a12509532c
commit 8ccfe80c0b
1 changed files with 8 additions and 1 deletions

View File

@ -1068,8 +1068,15 @@ START_TEST(dsound)
hDsound = LoadLibrary("dsound.dll");
if (hDsound)
{
BOOL ret;
ok( FreeLibrary(hDsound), "FreeLibrary(1) returned %d\n", GetLastError());
ok( FreeLibrary(hDsound), "FreeLibrary(2) returned %d\n", GetLastError());
SetLastError(0xdeadbeef);
ret = FreeLibrary(hDsound);
ok( ret ||
broken(!ret && GetLastError() == ERROR_MOD_NOT_FOUND) || /* NT4 */
broken(!ret && GetLastError() == ERROR_INVALID_HANDLE), /* Win9x */
"FreeLibrary(2) returned %d\n", GetLastError());
ok(!FreeLibrary(hDsound), "DirectSound DLL still loaded\n");
}