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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
10 deletions
+6
-10
proxyodbc.c
dlls/odbc32/proxyodbc.c
+6
-10
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
...
@@ -2641,18 +2639,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
...
@@ -2641,18 +2639,16 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD reason, LPVOID reserved)
switch
(
reason
)
switch
(
reason
)
{
{
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
();
}
}
break
;
break
;
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