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
4ed24cd5
Commit
4ed24cd5
authored
Nov 16, 2011
by
Francois Gouget
Committed by
Alexandre Julliard
Nov 16, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dinput: Delete the static critical section when unloading the dll.
parent
8ce78a7b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
14 deletions
+15
-14
dinput_main.c
dlls/dinput/dinput_main.c
+15
-14
No files found.
dlls/dinput/dinput_main.c
View file @
4ed24cd5
...
...
@@ -97,20 +97,6 @@ static const struct dinput_device *dinput_devices[] =
static
HINSTANCE
DINPUT_instance
=
NULL
;
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserv
)
{
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
inst
);
DINPUT_instance
=
inst
;
break
;
case
DLL_PROCESS_DETACH
:
break
;
}
return
TRUE
;
}
static
BOOL
check_hook_thread
(
void
);
static
CRITICAL_SECTION
dinput_hook_crit
;
static
struct
list
direct_input_list
=
LIST_INIT
(
direct_input_list
);
...
...
@@ -1443,3 +1429,18 @@ void check_dinput_hooks(LPDIRECTINPUTDEVICE8W iface)
LeaveCriticalSection
(
&
dinput_hook_crit
);
}
BOOL
WINAPI
DllMain
(
HINSTANCE
inst
,
DWORD
reason
,
LPVOID
reserv
)
{
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
inst
);
DINPUT_instance
=
inst
;
break
;
case
DLL_PROCESS_DETACH
:
DeleteCriticalSection
(
&
dinput_hook_crit
);
break
;
}
return
TRUE
;
}
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