Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
4a0a2ee0
Commit
4a0a2ee0
authored
May 11, 2002
by
Christian Costa
Committed by
Alexandre Julliard
May 11, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid deadlock in VGA_DoSetMode.
parent
470a3f93
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
13 deletions
+13
-13
vga.c
dlls/winedos/vga.c
+13
-13
No files found.
dlls/winedos/vga.c
View file @
4a0a2ee0
...
...
@@ -232,6 +232,18 @@ typedef struct {
int
ret
;
}
ModeSet
;
static
void
WINAPI
VGA_DoExit
(
ULONG_PTR
arg
)
{
VGA_DeinstallTimer
();
IDirectDrawSurface_SetPalette
(
lpddsurf
,
NULL
);
IDirectDrawSurface_Release
(
lpddsurf
);
lpddsurf
=
NULL
;
IDirectDrawPalette_Release
(
lpddpal
);
lpddpal
=
NULL
;
IDirectDraw_Release
(
lpddraw
);
lpddraw
=
NULL
;
}
static
void
WINAPI
VGA_DoSetMode
(
ULONG_PTR
arg
)
{
LRESULT
res
;
...
...
@@ -239,7 +251,7 @@ static void WINAPI VGA_DoSetMode(ULONG_PTR arg)
ModeSet
*
par
=
(
ModeSet
*
)
arg
;
par
->
ret
=
1
;
if
(
lpddraw
)
VGA_
Exit
(
);
if
(
lpddraw
)
VGA_
DoExit
(
NULL
);
if
(
!
lpddraw
)
{
if
(
!
pDirectDrawCreate
)
{
...
...
@@ -334,18 +346,6 @@ int VGA_GetMode(unsigned*Height,unsigned*Width,unsigned*Depth)
return
0
;
}
static
void
WINAPI
VGA_DoExit
(
ULONG_PTR
arg
)
{
VGA_DeinstallTimer
();
IDirectDrawSurface_SetPalette
(
lpddsurf
,
NULL
);
IDirectDrawSurface_Release
(
lpddsurf
);
lpddsurf
=
NULL
;
IDirectDrawPalette_Release
(
lpddpal
);
lpddpal
=
NULL
;
IDirectDraw_Release
(
lpddraw
);
lpddraw
=
NULL
;
}
void
VGA_Exit
(
void
)
{
if
(
lpddraw
)
MZ_RunInThread
(
VGA_DoExit
,
0
);
...
...
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