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
7f808e56
Commit
7f808e56
authored
Nov 25, 2022
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Use the Unix call helpers.
parent
f7b55ffa
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
proxyodbc.c
dlls/odbc32/proxyodbc.c
+3
-7
No files found.
dlls/odbc32/proxyodbc.c
View file @
7f808e56
...
@@ -45,9 +45,7 @@
...
@@ -45,9 +45,7 @@
WINE_DEFAULT_DEBUG_CHANNEL
(
odbc
);
WINE_DEFAULT_DEBUG_CHANNEL
(
odbc
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
static
unixlib_handle_t
odbc_handle
;
#define ODBC_CALL( func, params ) WINE_UNIX_CALL( unix_ ## func, params )
#define ODBC_CALL( func, params ) __wine_unix_call( odbc_handle, unix_ ## func, params )
/***********************************************************************
/***********************************************************************
* ODBC_ReplicateODBCInstToRegistry
* ODBC_ReplicateODBCInstToRegistry
...
@@ -2642,9 +2640,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
...
@@ -2642,9 +2640,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
{
{
case
DLL_PROCESS_ATTACH
:
case
DLL_PROCESS_ATTACH
:
DisableThreadLibraryCalls
(
hinstDLL
);
DisableThreadLibraryCalls
(
hinstDLL
);
if
(
!
NtQueryVirtualMemory
(
GetCurrentProcess
(),
hinstDLL
,
MemoryWineUnixFuncs
,
if
(
!
__wine_init_unix_call
()
&&
!
WINE_UNIX_CALL
(
process_attach
,
NULL
))
&
odbc_handle
,
sizeof
(
odbc_handle
),
NULL
)
&&
!
__wine_unix_call
(
odbc_handle
,
process_attach
,
NULL
))
{
{
ODBC_ReplicateToRegistry
();
ODBC_ReplicateToRegistry
();
}
}
...
@@ -2652,7 +2648,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
...
@@ -2652,7 +2648,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
case
DLL_PROCESS_DETACH
:
case
DLL_PROCESS_DETACH
:
if
(
reserved
)
break
;
if
(
reserved
)
break
;
__wine_unix_call
(
odbc_handle
,
process_detach
,
NULL
);
WINE_UNIX_CALL
(
process_detach
,
NULL
);
}
}
return
TRUE
;
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