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
3543a070
Commit
3543a070
authored
Oct 09, 2006
by
Stefan Dösinger
Committed by
Alexandre Julliard
Oct 09, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Protect the ddraw list.
parent
09e794af
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
main.c
dlls/ddraw/main.c
+15
-0
No files found.
dlls/ddraw/main.c
View file @
3543a070
...
...
@@ -58,8 +58,19 @@ WINE_DEFAULT_DEBUG_CHANNEL(ddraw);
/* The configured default surface */
WINED3DSURFTYPE
DefaultSurfaceType
=
SURFACE_UNKNOWN
;
/* DDraw list and critical section */
static
struct
list
global_ddraw_list
=
LIST_INIT
(
global_ddraw_list
);
static
CRITICAL_SECTION
ddraw_list_cs
;
static
CRITICAL_SECTION_DEBUG
ddraw_list_cs_debug
=
{
0
,
0
,
&
ddraw_list_cs
,
{
&
ddraw_list_cs_debug
.
ProcessLocksList
,
&
ddraw_list_cs_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": ddraw_list_cs"
)
}
};
static
CRITICAL_SECTION
ddraw_list_cs
=
{
&
ddraw_list_cs_debug
,
-
1
,
0
,
0
,
0
,
0
};
/***********************************************************************
*
* Helper function for DirectDrawCreate and friends
...
...
@@ -304,7 +315,9 @@ DDRAW_Create(GUID *guid,
#undef CKEY_CAPS
#undef FX_CAPS
EnterCriticalSection
(
&
ddraw_list_cs
);
list_add_head
(
&
global_ddraw_list
,
&
This
->
ddraw_list_entry
);
LeaveCriticalSection
(
&
ddraw_list_cs
);
/* Call QueryInterface to get the pointer to the requested interface. This also initializes
* The required refcount
...
...
@@ -929,5 +942,7 @@ DllMain(HINSTANCE hInstDLL,
void
remove_ddraw_object
(
IDirectDrawImpl
*
ddraw
)
{
EnterCriticalSection
(
&
ddraw_list_cs
);
list_remove
(
&
ddraw
->
ddraw_list_entry
);
LeaveCriticalSection
(
&
ddraw_list_cs
);
}
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