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
21bfa081
Commit
21bfa081
authored
Apr 30, 2013
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Don't unload external libraries on process shutdown.
parent
2710f05c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
23 deletions
+9
-23
proxyodbc.c
dlls/odbc32/proxyodbc.c
+9
-23
No files found.
dlls/odbc32/proxyodbc.c
View file @
21bfa081
...
...
@@ -465,39 +465,25 @@ static void ODBC_ReplicateToRegistry (void)
/***********************************************************************
* DllMain [Internal] Initializes the internal 'ODBC32.DLL'.
*
* PARAMS
* hinstDLL [I] handle to the DLL's instance
* fdwReason [I]
* lpvReserved [I] reserved, must be NULL
*
* RETURNS
* Success: TRUE
* Failure: FALSE
*/
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
fdwReason
,
LPVOID
lpvReserved
)
BOOL
WINAPI
DllMain
(
HINSTANCE
hinstDLL
,
DWORD
reason
,
LPVOID
reserved
)
{
TRACE
(
"
Initializing or Finalizing proxy ODBC: %p,%x,%p
\n
"
,
hinstDLL
,
fdwReason
,
lpvR
eserved
);
TRACE
(
"
proxy ODBC: %p,%x,%p
\n
"
,
hinstDLL
,
reason
,
r
eserved
);
if
(
fdwReason
==
DLL_PROCESS_ATTACH
)
switch
(
reason
)
{
TRACE
(
"Loading ODBC...
\n
"
);
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
if
(
ODBC_LoadDriverManager
())
{
ODBC_LoadDMFunctions
();
ODBC_ReplicateToRegistry
();
}
}
else
if
(
fdwReason
==
DLL_PROCESS_DETACH
)
{
TRACE
(
"Unloading ODBC...
\n
"
);
if
(
dmHandle
)
{
wine_dlclose
(
dmHandle
,
NULL
,
0
);
dmHandle
=
NULL
;
}
break
;
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
if
(
dmHandle
)
wine_dlclose
(
dmHandle
,
NULL
,
0
);
}
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