Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
097e2812
Commit
097e2812
authored
Oct 18, 2004
by
Robert Reif
Committed by
Alexandre Julliard
Oct 18, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some places where no driver present causes problems.
parent
68419717
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
40 additions
and
19 deletions
+40
-19
ds3d.c
dlls/dsound/tests/ds3d.c
+8
-4
ds3d8.c
dlls/dsound/tests/ds3d8.c
+8
-4
dsound.c
dlls/dsound/tests/dsound.c
+11
-5
dsound8.c
dlls/dsound/tests/dsound8.c
+11
-5
propset.c
dlls/dsound/tests/propset.c
+2
-1
No files found.
dlls/dsound/tests/ds3d.c
View file @
097e2812
...
...
@@ -636,7 +636,8 @@ static HRESULT test_secondary(LPGUID lpGuid, int play,
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -877,7 +878,8 @@ static HRESULT test_primary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -959,7 +961,8 @@ static HRESULT test_primary_3d(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -1031,7 +1034,8 @@ static HRESULT test_primary_3d_with_listener(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
dlls/dsound/tests/ds3d8.c
View file @
097e2812
...
...
@@ -538,7 +538,8 @@ static HRESULT test_secondary8(LPGUID lpGuid, int play,
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -791,7 +792,8 @@ static HRESULT test_primary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -873,7 +875,8 @@ static HRESULT test_primary_3d8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -946,7 +949,8 @@ static HRESULT test_primary_3d_with_listener8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
dlls/dsound/tests/dsound.c
View file @
097e2812
...
...
@@ -94,8 +94,10 @@ static void IDirectSound_test(LPDIRECTSOUND dso, BOOL initialized,
DXGetErrorString8
(
rc
));
rc
=
IDirectSound_Initialize
(
dso
,
lpGuid
);
ok
(
rc
==
DS_OK
,
"IDirectSound_Initialize() failed: %s
\n
"
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"IDirectSound_Initialize() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_NODRIVER
)
return
;
}
/* DSOUND: Error: Invalid caps buffer */
...
...
@@ -245,7 +247,8 @@ static HRESULT test_dsound(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -344,7 +347,8 @@ static HRESULT test_primary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -485,7 +489,8 @@ static HRESULT test_primary_secondary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -621,7 +626,8 @@ static HRESULT test_secondary(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
dlls/dsound/tests/dsound8.c
View file @
097e2812
...
...
@@ -103,8 +103,10 @@ static void IDirectSound8_test(LPDIRECTSOUND8 dso, BOOL initialized,
DXGetErrorString8
(
rc
));
rc
=
IDirectSound8_Initialize
(
dso
,
lpGuid
);
ok
(
rc
==
DS_OK
,
"IDirectSound8_Initialize() failed: %s
\n
"
,
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"IDirectSound8_Initialize() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
==
DSERR_NODRIVER
)
return
;
}
/* DSOUND: Error: Invalid caps buffer */
...
...
@@ -255,7 +257,8 @@ static HRESULT test_dsound8(LPGUID lpGuid)
/* Create the DirectSound8 object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -365,7 +368,8 @@ static HRESULT test_primary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -506,7 +510,8 @@ static HRESULT test_primary_secondary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
@@ -642,7 +647,8 @@ static HRESULT test_secondary8(LPGUID lpGuid)
/* Create the DirectSound object */
rc
=
pDirectSoundCreate8
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate8() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
return
rc
;
...
...
dlls/dsound/tests/propset.c
View file @
097e2812
...
...
@@ -268,7 +268,8 @@ static BOOL WINAPI dsenum_callback(LPGUID lpGuid, LPCSTR lpcstrDescription,
trace
(
"*** Testing %s - %s ***
\n
"
,
lpcstrDescription
,
lpcstrModule
);
rc
=
DirectSoundCreate
(
lpGuid
,
&
dso
,
NULL
);
ok
(
rc
==
DS_OK
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
ok
(
rc
==
DS_OK
||
rc
==
DSERR_NODRIVER
,
"DirectSoundCreate() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
if
(
rc
!=
DS_OK
)
goto
EXIT
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment