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
d7742309
Commit
d7742309
authored
Nov 13, 2015
by
Alistair Leslie-Hughes
Committed by
Alexandre Julliard
Nov 13, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Remove duplicate string.
Signed-off-by:
Alistair Leslie-Hughes
<
leslie_alistair@hotmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
76faeeb5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
odbccp32.c
dlls/odbccp32/odbccp32.c
+2
-3
No files found.
dlls/odbccp32/odbccp32.c
View file @
d7742309
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(odbc);
...
@@ -37,6 +37,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(odbc);
/* Registry key names */
/* Registry key names */
static
const
WCHAR
drivers_key
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
'I'
,
'N'
,
'S'
,
'T'
,
'.'
,
'I'
,
'N'
,
'I'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
' '
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
drivers_key
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
'I'
,
'N'
,
'S'
,
'T'
,
'.'
,
'I'
,
'N'
,
'I'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
' '
,
'D'
,
'r'
,
'i'
,
'v'
,
'e'
,
'r'
,
's'
,
0
};
static
const
WCHAR
odbcW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
0
};
/* This config mode is known to be process-wide.
/* This config mode is known to be process-wide.
* MSDN documentation suggests that the value is hidden somewhere in the registry but I haven't found it yet.
* MSDN documentation suggests that the value is hidden somewhere in the registry but I haven't found it yet.
...
@@ -401,7 +402,6 @@ BOOL WINAPI SQLGetInstalledDrivers(LPSTR lpszBuf, WORD cbBufMax,
...
@@ -401,7 +402,6 @@ BOOL WINAPI SQLGetInstalledDrivers(LPSTR lpszBuf, WORD cbBufMax,
static
HKEY
get_privateprofile_sectionkey
(
LPCWSTR
section
,
LPCWSTR
filename
)
static
HKEY
get_privateprofile_sectionkey
(
LPCWSTR
section
,
LPCWSTR
filename
)
{
{
static
const
WCHAR
odbcW
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
'\\'
,
0
};
HKEY
hkey
,
hkeyfilename
,
hkeysection
;
HKEY
hkey
,
hkeyfilename
,
hkeysection
;
LONG
ret
;
LONG
ret
;
...
@@ -1165,7 +1165,6 @@ BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR lpszSection, LPCWSTR lpszEntry
...
@@ -1165,7 +1165,6 @@ BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR lpszSection, LPCWSTR lpszEntry
{
{
LONG
ret
;
LONG
ret
;
HKEY
hkey
;
HKEY
hkey
;
WCHAR
softwareodbc
[]
=
{
'S'
,
'o'
,
'f'
,
't'
,
'w'
,
'a'
,
'r'
,
'e'
,
'\\'
,
'O'
,
'D'
,
'B'
,
'C'
,
0
};
clear_errors
();
clear_errors
();
TRACE
(
"%s %s %s %s
\n
"
,
debugstr_w
(
lpszSection
),
debugstr_w
(
lpszEntry
),
TRACE
(
"%s %s %s %s
\n
"
,
debugstr_w
(
lpszSection
),
debugstr_w
(
lpszEntry
),
...
@@ -1177,7 +1176,7 @@ BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR lpszSection, LPCWSTR lpszEntry
...
@@ -1177,7 +1176,7 @@ BOOL WINAPI SQLWritePrivateProfileStringW(LPCWSTR lpszSection, LPCWSTR lpszEntry
return
FALSE
;
return
FALSE
;
}
}
if
((
ret
=
RegCreateKeyW
(
HKEY_CURRENT_USER
,
softwareodbc
,
&
hkey
))
==
ERROR_SUCCESS
)
if
((
ret
=
RegCreateKeyW
(
HKEY_CURRENT_USER
,
odbcW
,
&
hkey
))
==
ERROR_SUCCESS
)
{
{
HKEY
hkeyfilename
;
HKEY
hkeyfilename
;
...
...
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