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
19bc84c8
Commit
19bc84c8
authored
Sep 10, 2009
by
Chris Robinson
Committed by
Alexandre Julliard
Sep 11, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
openal32: Pass invalid contexts to the host OpenAL lib so it can set the proper error state.
parent
3b6ac300
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
openal.c
dlls/openal32/openal.c
+3
-6
No files found.
dlls/openal32/openal.c
View file @
19bc84c8
...
...
@@ -175,15 +175,11 @@ ALCboolean CDECL wine_alcMakeContextCurrent(ALCcontext *context)
EnterCriticalSection
(
&
openal_cs
);
if
(
context
&&
!
(
ctx
=
ValidateCtx
(
context
)))
{
FIXME
(
"Could not find context %p in context list
\n
"
,
context
);
LeaveCriticalSection
(
&
openal_cs
);
return
ALC_FALSE
;
}
if
(
alcMakeContextCurrent
(
c
tx
?
ctx
->
ctx
:
NULL
)
==
ALC_FALSE
)
if
(
alcMakeContextCurrent
(
c
ontext
)
==
ALC_FALSE
)
{
WARN
(
"Failed to make context %p current
\n
"
,
c
tx
->
ctx
);
WARN
(
"Failed to make context %p current
\n
"
,
c
ontext
);
LeaveCriticalSection
(
&
openal_cs
);
return
ALC_FALSE
;
}
...
...
@@ -257,6 +253,7 @@ ALvoid CDECL wine_alcDestroyContext(ALCcontext *context)
if
(
!
(
*
list
))
{
FIXME
(
"Could not find context %p in context list
\n
"
,
context
);
alcDestroyContext
(
context
);
LeaveCriticalSection
(
&
openal_cs
);
return
;
}
...
...
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