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
ef61c0b6
Commit
ef61c0b6
authored
May 08, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
May 08, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Initialize WIN_CritSection earlier.
parent
3d35e989
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
4 deletions
+15
-4
win.h
include/win.h
+1
-0
main.c
loader/main.c
+4
-0
win.c
windows/win.c
+10
-4
No files found.
include/win.h
View file @
ef61c0b6
...
...
@@ -158,6 +158,7 @@ typedef struct
#define BWA_SKIPICONIC 0x0008
/* Window functions */
extern
void
WIN_Init
(
void
);
extern
void
WIN_LockWnds
();
extern
void
WIN_UnlockWnds
();
extern
int
WIN_SuspendWndsLock
();
...
...
loader/main.c
View file @
ef61c0b6
...
...
@@ -36,6 +36,7 @@
#include "global.h"
#include "dce.h"
#include "shell.h"
#include "win.h"
#include "winproc.h"
#include "syslevel.h"
#include "services.h"
...
...
@@ -213,6 +214,9 @@ BOOL WINAPI MAIN_UserInit(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserve
/* Global atom table initialisation */
if
(
!
ATOM_Init
(
USER_HeapSel
))
return
FALSE
;
/* Initialize window handling (critical section) */
WIN_Init
();
/* Initialize system colors and metrics*/
SYSMETRICS_Init
();
SYSCOLOR_Init
();
...
...
windows/win.c
View file @
ef61c0b6
...
...
@@ -53,6 +53,16 @@ static WORD wDragHeight= 3;
static
CRITICAL_SECTION
WIN_CritSection
;
/***********************************************************************
* WIN_Init
*/
void
WIN_Init
(
void
)
{
/* Initialisation of the critical section for thread safeness */
InitializeCriticalSection
(
&
WIN_CritSection
);
MakeCriticalSectionGlobal
(
&
WIN_CritSection
);
}
/***********************************************************************
* WIN_LockWnds
*
* Locks access to all WND structures for thread safeness
...
...
@@ -604,10 +614,6 @@ BOOL WIN_CreateDesktopWindow(void)
TRACE_
(
win
)(
"Creating desktop window
\n
"
);
/* Initialisation of the critical section for thread safeness */
InitializeCriticalSection
(
&
WIN_CritSection
);
MakeCriticalSectionGlobal
(
&
WIN_CritSection
);
if
(
!
ICONTITLE_Init
()
||
!
WINPOS_CreateInternalPosAtom
()
||
...
...
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