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
c3f06fb2
Commit
c3f06fb2
authored
Mar 05, 2005
by
Robert Reif
Committed by
Alexandre Julliard
Mar 05, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Print dsound.dll version from file versioninfo resource.
parent
a7609ee1
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
50 additions
and
2 deletions
+50
-2
Makefile.in
dlls/dsound/tests/Makefile.in
+1
-1
capture.c
dlls/dsound/tests/capture.c
+3
-0
ds3d.c
dlls/dsound/tests/ds3d.c
+2
-0
ds3d8.c
dlls/dsound/tests/ds3d8.c
+2
-0
dsound.c
dlls/dsound/tests/dsound.c
+2
-0
dsound8.c
dlls/dsound/tests/dsound8.c
+36
-0
dsound_test.h
dlls/dsound/tests/dsound_test.h
+1
-0
propset.c
dlls/dsound/tests/propset.c
+3
-1
No files found.
dlls/dsound/tests/Makefile.in
View file @
c3f06fb2
...
...
@@ -3,7 +3,7 @@ TOPOBJDIR = ../../..
SRCDIR
=
@srcdir@
VPATH
=
@srcdir@
TESTDLL
=
dsound.dll
IMPORTS
=
dsound ole32 user32 kernel32
IMPORTS
=
dsound ole32
version
user32 kernel32
EXTRALIBS
=
-ldxguid
-luuid
-ldxerr8
CTESTS
=
\
...
...
dlls/dsound/tests/capture.c
View file @
c3f06fb2
...
...
@@ -541,6 +541,9 @@ START_TEST(capture)
trace
(
"dsound.dll not found
\n
"
);
return
;
}
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
pDirectSoundCaptureCreate
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCaptureCreate"
);
pDirectSoundCaptureEnumerateA
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCaptureEnumerateA"
);
if
(
!
pDirectSoundCaptureCreate
||
!
pDirectSoundCaptureEnumerateA
)
...
...
dlls/dsound/tests/ds3d.c
View file @
c3f06fb2
...
...
@@ -1232,6 +1232,8 @@ START_TEST(ds3d)
{
CoInitialize
(
NULL
);
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
ds3d_tests
();
CoUninitialize
();
...
...
dlls/dsound/tests/ds3d8.c
View file @
c3f06fb2
...
...
@@ -1133,6 +1133,8 @@ START_TEST(ds3d8)
return
;
}
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
pDirectSoundCreate8
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCreate8"
);
if
(
!
pDirectSoundCreate8
)
{
trace
(
"ds3d8 test skipped
\n
"
);
...
...
dlls/dsound/tests/dsound.c
View file @
c3f06fb2
...
...
@@ -926,6 +926,8 @@ START_TEST(dsound)
{
CoInitialize
(
NULL
);
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
IDirectSound_tests
();
dsound_tests
();
...
...
dlls/dsound/tests/dsound8.c
View file @
c3f06fb2
...
...
@@ -28,6 +28,7 @@
#define NONAMELESSSTRUCT
#define NONAMELESSUNION
#include <windows.h>
#include <stdio.h>
#include "wine/test.h"
#include "dsound.h"
...
...
@@ -785,6 +786,39 @@ static void dsound8_tests()
ok
(
rc
==
DS_OK
,
"DirectSoundEnumerateA() failed: %s
\n
"
,
DXGetErrorString8
(
rc
));
}
const
char
*
get_file_version
(
const
char
*
file_name
)
{
static
char
version
[
32
];
DWORD
size
;
DWORD
handle
;
size
=
GetFileVersionInfoSizeA
(
"dsound.dll"
,
&
handle
);
if
(
size
)
{
char
*
data
=
HeapAlloc
(
GetProcessHeap
(),
0
,
size
);
if
(
data
)
{
if
(
GetFileVersionInfoA
(
"dsound.dll"
,
handle
,
size
,
data
))
{
VS_FIXEDFILEINFO
*
pFixedVersionInfo
;
UINT
len
;
if
(
VerQueryValueA
(
data
,
"
\\
"
,
(
LPLPVOID
)
&
pFixedVersionInfo
,
&
len
))
{
sprintf
(
version
,
"%ld.%ld.%ld.%ld"
,
pFixedVersionInfo
->
dwFileVersionMS
>>
16
,
pFixedVersionInfo
->
dwFileVersionMS
&
0xffff
,
pFixedVersionInfo
->
dwFileVersionLS
>>
16
,
pFixedVersionInfo
->
dwFileVersionLS
&
0xffff
);
}
else
sprintf
(
version
,
"not available"
);
}
else
sprintf
(
version
,
"failed"
);
HeapFree
(
GetProcessHeap
(),
0
,
data
);
}
else
sprintf
(
version
,
"failed"
);
}
else
sprintf
(
version
,
"not available"
);
return
version
;
}
START_TEST
(
dsound8
)
{
HMODULE
hDsound
;
...
...
@@ -797,6 +831,8 @@ START_TEST(dsound8)
return
;
}
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
pDirectSoundCreate8
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCreate8"
);
if
(
!
pDirectSoundCreate8
)
{
trace
(
"dsound8 test skipped
\n
"
);
...
...
dlls/dsound/tests/dsound_test.h
View file @
c3f06fb2
...
...
@@ -61,3 +61,4 @@ extern void test_buffer8(LPDIRECTSOUND8,LPDIRECTSOUNDBUFFER,
LPDIRECTSOUND3DLISTENER
,
BOOL
,
BOOL
);
extern
const
char
*
getDSBCAPS
(
DWORD
xmask
);
extern
int
align
(
int
length
,
int
align
);
extern
const
char
*
get_file_version
(
const
char
*
file_name
);
dlls/dsound/tests/propset.c
View file @
c3f06fb2
...
...
@@ -435,7 +435,9 @@ START_TEST(propset)
trace
(
"dsound.dll not found
\n
"
);
return
;
}
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
pDirectSoundCreate8
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCreate8"
);
pDirectSoundCaptureCreate
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCaptureCreate"
);
pDirectSoundCaptureCreate8
=
(
void
*
)
GetProcAddress
(
hDsound
,
"DirectSoundCaptureCreate8"
);
...
...
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