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
00629cb0
Commit
00629cb0
authored
Oct 28, 2011
by
Andrew Eikum
Committed by
Alexandre Julliard
Oct 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winecfg: Don't reload winmm for each audio test.
parent
cb1dd010
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
22 deletions
+2
-22
Makefile.in
programs/winecfg/Makefile.in
+1
-1
audio.c
programs/winecfg/audio.c
+1
-21
No files found.
programs/winecfg/Makefile.in
View file @
00629cb0
MODULE
=
winecfg.exe
APPMODE
=
-mwindows
IMPORTS
=
uuid comdlg32 comctl32 shell32 ole32 shlwapi uxtheme user32 gdi32 advapi32
IMPORTS
=
uuid comdlg32 comctl32 shell32 ole32
winmm
shlwapi uxtheme user32 gdi32 advapi32
C_SRCS
=
\
about.c
\
...
...
programs/winecfg/audio.c
View file @
00629cb0
...
...
@@ -305,25 +305,7 @@ static void set_reg_device(HWND hDlg, int dlgitem, const WCHAR *key_name)
static
void
test_sound
(
void
)
{
BOOL
(
WINAPI
*
pPlaySoundW
)(
const
WCHAR
*
,
HMODULE
,
DWORD
);
HMODULE
winmm
;
static
const
WCHAR
winmmW
[]
=
{
'w'
,
'i'
,
'n'
,
'm'
,
'm'
,
'.'
,
'd'
,
'l'
,
'l'
,
0
};
winmm
=
LoadLibraryW
(
winmmW
);
if
(
!
winmm
){
WINE_ERR
(
"LoadLibrary failed: %u
\n
"
,
GetLastError
());
return
;
}
pPlaySoundW
=
(
void
*
)
GetProcAddress
(
winmm
,
"PlaySoundW"
);
if
(
!
pPlaySoundW
){
WINE_ERR
(
"GetProcAddress failed: %u
\n
"
,
GetLastError
());
FreeLibrary
(
winmm
);
return
;
}
if
(
!
pPlaySoundW
(
MAKEINTRESOURCEW
(
IDW_TESTSOUND
),
NULL
,
SND_RESOURCE
|
SND_SYNC
)){
if
(
!
PlaySoundW
(
MAKEINTRESOURCEW
(
IDW_TESTSOUND
),
NULL
,
SND_RESOURCE
|
SND_SYNC
)){
WCHAR
error_str
[
256
],
title_str
[
256
];
LoadStringW
(
GetModuleHandle
(
NULL
),
IDS_AUDIO_TEST_FAILED
,
...
...
@@ -333,8 +315,6 @@ static void test_sound(void)
MessageBoxW
(
NULL
,
error_str
,
title_str
,
MB_OK
|
MB_ICONERROR
);
}
FreeLibrary
(
winmm
);
}
INT_PTR
CALLBACK
...
...
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