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
e56a302f
Commit
e56a302f
authored
Aug 30, 2007
by
Maarten Lankhorst
Committed by
Alexandre Julliard
Aug 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dsound: Increase dll refcount and disable thread calls.
parent
9c18d92f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
dsound_main.c
dlls/dsound/dsound_main.c
+3
-6
dsound.c
dlls/dsound/tests/dsound.c
+8
-0
No files found.
dlls/dsound/dsound_main.c
View file @
e56a302f
...
...
@@ -585,16 +585,13 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
INIT_GUID
(
DSOUND_renderer_guids
[
i
],
0xbd6dd71a
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
INIT_GUID
(
DSOUND_capture_guids
[
i
],
0xbd6dd71b
,
0x3deb
,
0x11d1
,
0xb1
,
0x71
,
0x00
,
0xc0
,
0x4f
,
0xc2
,
0x00
,
0x00
+
i
);
}
DisableThreadLibraryCalls
(
hInstDLL
);
/* Increase refcount on dsound by 1 */
GetModuleHandleExW
(
GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS
,
(
LPCWSTR
)
hInstDLL
,
&
hInstDLL
);
break
;
case
DLL_PROCESS_DETACH
:
TRACE
(
"DLL_PROCESS_DETACH
\n
"
);
break
;
case
DLL_THREAD_ATTACH
:
TRACE
(
"DLL_THREAD_ATTACH
\n
"
);
break
;
case
DLL_THREAD_DETACH
:
TRACE
(
"DLL_THREAD_DETACH
\n
"
);
break
;
default:
TRACE
(
"UNKNOWN REASON
\n
"
);
break
;
...
...
dlls/dsound/tests/dsound.c
View file @
e56a302f
...
...
@@ -970,6 +970,14 @@ START_TEST(dsound)
hDsound
=
LoadLibrary
(
"dsound.dll"
);
if
(
hDsound
)
{
ok
(
FreeLibrary
(
hDsound
),
"FreeLibrary(1) returned %d
\n
"
,
GetLastError
());
ok
(
FreeLibrary
(
hDsound
),
"FreeLibrary(2) returned %d
\n
"
,
GetLastError
());
ok
(
!
FreeLibrary
(
hDsound
),
"DirectSound DLL still loaded
\n
"
);
}
hDsound
=
LoadLibrary
(
"dsound.dll"
);
if
(
hDsound
)
{
trace
(
"DLL Version: %s
\n
"
,
get_file_version
(
"dsound.dll"
));
pDirectSoundEnumerateA
=
(
void
*
)
GetProcAddress
(
hDsound
,
...
...
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