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
0ad26e27
Commit
0ad26e27
authored
May 14, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ddraw: Don't bother to unregister classes at process exit.
parent
1b4c1ab9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
main.c
dlls/ddraw/main.c
+9
-9
No files found.
dlls/ddraw/main.c
View file @
0ad26e27
...
@@ -848,13 +848,12 @@ static inline DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, c
...
@@ -848,13 +848,12 @@ static inline DWORD get_config_key(HKEY defkey, HKEY appkey, const char* name, c
* app didn't release them properly(Gothic 2, Diablo 2, Moto racer, ...)
* app didn't release them properly(Gothic 2, Diablo 2, Moto racer, ...)
*
*
***********************************************************************/
***********************************************************************/
BOOL
WINAPI
BOOL
WINAPI
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
reason
,
LPVOID
reserved
)
DllMain
(
HINSTANCE
hInstDLL
,
DWORD
Reason
,
LPVOID
lpv
)
{
{
TRACE
(
"(%p,%x,%p)
\n
"
,
hInstDLL
,
Reason
,
lpv
);
TRACE
(
"(%p,%x,%p)
\n
"
,
hInstDLL
,
reason
,
reserved
);
if
(
Reason
==
DLL_PROCESS_ATTACH
)
switch
(
reason
)
{
case
DLL_PROCESS_ATTACH
:
{
{
static
HMODULE
ddraw_self
;
static
HMODULE
ddraw_self
;
char
buffer
[
MAX_PATH
+
10
];
char
buffer
[
MAX_PATH
+
10
];
...
@@ -968,9 +967,10 @@ DllMain(HINSTANCE hInstDLL,
...
@@ -968,9 +967,10 @@ DllMain(HINSTANCE hInstDLL,
instance
=
hInstDLL
;
instance
=
hInstDLL
;
DisableThreadLibraryCalls
(
hInstDLL
);
DisableThreadLibraryCalls
(
hInstDLL
);
break
;
}
}
else
if
(
Reason
==
DLL_PROCESS_DETACH
)
{
case
DLL_PROCESS_DETACH
:
if
(
!
list_empty
(
&
global_ddraw_list
))
if
(
!
list_empty
(
&
global_ddraw_list
))
{
{
struct
list
*
entry
,
*
entry2
;
struct
list
*
entry
,
*
entry2
;
...
@@ -1034,7 +1034,7 @@ DllMain(HINSTANCE hInstDLL,
...
@@ -1034,7 +1034,7 @@ DllMain(HINSTANCE hInstDLL,
}
}
}
}
/* Unregister the window class. */
if
(
reserved
)
break
;
UnregisterClassA
(
DDRAW_WINDOW_CLASS_NAME
,
hInstDLL
);
UnregisterClassA
(
DDRAW_WINDOW_CLASS_NAME
,
hInstDLL
);
}
}
...
...
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