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
44e2a14a
Commit
44e2a14a
authored
Dec 02, 2020
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Dec 04, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Implement SQLRemoveDSNFromIni/w.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd9a510b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
6 deletions
+33
-6
odbccp32.c
dlls/odbccp32/odbccp32.c
+33
-6
No files found.
dlls/odbccp32/odbccp32.c
View file @
44e2a14a
...
...
@@ -1523,18 +1523,45 @@ BOOL WINAPI SQLRemoveDriverManager(LPDWORD pdwUsageCount)
BOOL
WINAPI
SQLRemoveDSNFromIniW
(
LPCWSTR
lpszDSN
)
{
HKEY
hkey
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszDSN
));
clear_errors
();
FIXME
(
"%s
\n
"
,
debugstr_w
(
lpszDSN
));
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
ODBC
\\
ODBC.INI
\\
ODBC Data Sources"
,
&
hkey
)
==
ERROR_SUCCESS
)
{
RegDeleteValueW
(
hkey
,
lpszDSN
);
RegCloseKey
(
hkey
);
}
if
(
RegOpenKeyW
(
HKEY_LOCAL_MACHINE
,
L"Software
\\
ODBC
\\
ODBC.INI"
,
&
hkey
)
==
ERROR_SUCCESS
)
{
RegDeleteTreeW
(
hkey
,
lpszDSN
);
RegCloseKey
(
hkey
);
}
return
TRUE
;
}
BOOL
WINAPI
SQLRemoveDSNFromIni
(
LPCSTR
lpszDSN
)
{
BOOL
ret
=
FALSE
;
WCHAR
*
dsn
;
TRACE
(
"%s
\n
"
,
debugstr_a
(
lpszDSN
));
clear_errors
();
FIXME
(
"%s
\n
"
,
debugstr_a
(
lpszDSN
));
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
dsn
=
SQLInstall_strdup
(
lpszDSN
);
if
(
dsn
)
ret
=
SQLRemoveDSNFromIniW
(
dsn
);
else
push_error
(
ODBC_ERROR_OUT_OF_MEM
,
odbc_error_out_of_mem
);
heap_free
(
dsn
);
return
ret
;
}
BOOL
WINAPI
SQLRemoveTranslatorW
(
const
WCHAR
*
translator
,
DWORD
*
usage_count
)
...
...
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