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
148e6c3a
Commit
148e6c3a
authored
Nov 15, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 15, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wintab32: Make the csTablet critical section static.
parent
5305c8e0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
wintab32.c
dlls/wintab32/wintab32.c
+7
-4
No files found.
dlls/wintab32/wintab32.c
View file @
148e6c3a
...
...
@@ -34,7 +34,13 @@ WINE_DEFAULT_DEBUG_CHANNEL(wintab32);
HWND
hwndDefault
=
NULL
;
static
const
WCHAR
WC_TABLETCLASSNAME
[]
=
{
'W'
,
'i'
,
'n'
,
'e'
,
'T'
,
'a'
,
'b'
,
'l'
,
'e'
,
't'
,
'C'
,
'l'
,
'a'
,
's'
,
's'
,
0
};
CRITICAL_SECTION
csTablet
;
static
CRITICAL_SECTION_DEBUG
csTablet_debug
=
{
0
,
0
,
&
csTablet
,
{
&
csTablet_debug
.
ProcessLocksList
,
&
csTablet_debug
.
ProcessLocksList
},
0
,
0
,
{
(
DWORD_PTR
)(
__FILE__
": csTablet"
)
}
};
CRITICAL_SECTION
csTablet
=
{
&
csTablet_debug
,
-
1
,
0
,
0
,
0
,
0
};
int
(
CDECL
*
pLoadTabletInfo
)(
HWND
hwnddefault
)
=
NULL
;
int
(
CDECL
*
pGetCurrentPacket
)(
LPWTPACKET
packet
)
=
NULL
;
...
...
@@ -74,8 +80,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
case
DLL_PROCESS_ATTACH
:
TRACE
(
"Initialization
\n
"
);
DisableThreadLibraryCalls
(
hInstDLL
);
InitializeCriticalSection
(
&
csTablet
);
csTablet
.
DebugInfo
->
Spare
[
0
]
=
(
DWORD_PTR
)(
__FILE__
": csTablet"
);
hx11drv
=
GetModuleHandleA
(
"winex11.drv"
);
if
(
hx11drv
)
{
...
...
@@ -98,7 +102,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpReserved)
hwndDefault
=
0
;
}
TABLET_Unregister
();
csTablet
.
DebugInfo
->
Spare
[
0
]
=
0
;
DeleteCriticalSection
(
&
csTablet
);
break
;
}
...
...
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