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
45ea03c8
Commit
45ea03c8
authored
Jun 17, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8b81c521
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
Makefile.in
dlls/odbccp32/Makefile.in
+2
-0
odbccp32.c
dlls/odbccp32/odbccp32.c
+5
-6
No files found.
dlls/odbccp32/Makefile.in
View file @
45ea03c8
...
...
@@ -2,5 +2,7 @@ MODULE = odbccp32.dll
IMPORTLIB
=
odbccp32
IMPORTS
=
uuid advapi32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
odbccp32.c
dlls/odbccp32/odbccp32.c
View file @
45ea03c8
...
...
@@ -30,7 +30,6 @@
#include "winreg.h"
#include "winnls.h"
#include "sqlext.h"
#include "wine/unicode.h"
#include "wine/debug.h"
#include "wine/heap.h"
...
...
@@ -317,7 +316,7 @@ static BOOL write_config_value(const WCHAR *driver, const WCHAR *args)
{
WCHAR
*
divider
,
*
value
;
name
=
heap_alloc
(
(
strlenW
(
args
)
+
1
)
*
sizeof
(
WCHAR
));
name
=
heap_alloc
(
(
l
strlenW
(
args
)
+
1
)
*
sizeof
(
WCHAR
));
if
(
!
name
)
{
push_error
(
ODBC_ERROR_OUT_OF_MEM
,
odbc_error_out_of_mem
);
...
...
@@ -325,7 +324,7 @@ static BOOL write_config_value(const WCHAR *driver, const WCHAR *args)
}
lstrcpyW
(
name
,
args
);
divider
=
strchrW
(
name
,
'='
);
divider
=
wcschr
(
name
,
'='
);
if
(
!
divider
)
{
push_error
(
ODBC_ERROR_INVALID_KEYWORD_VALUE
,
odbc_error_invalid_keyword
);
...
...
@@ -337,7 +336,7 @@ static BOOL write_config_value(const WCHAR *driver, const WCHAR *args)
TRACE
(
"Write pair: %s = %s
\n
"
,
debugstr_w
(
name
),
debugstr_w
(
value
));
if
(
RegSetValueExW
(
hkeydriver
,
name
,
0
,
REG_SZ
,
(
BYTE
*
)
value
,
(
strlenW
(
value
)
+
1
)
*
sizeof
(
WCHAR
))
!=
ERROR_SUCCESS
)
(
l
strlenW
(
value
)
+
1
)
*
sizeof
(
WCHAR
))
!=
ERROR_SUCCESS
)
ERR
(
"Failed to write registry installed key
\n
"
);
heap_free
(
name
);
...
...
@@ -860,7 +859,7 @@ static void write_registry_values(const WCHAR *regkey, const WCHAR *driver, cons
for
(;
*
p
;
p
+=
lstrlenW
(
p
)
+
1
)
{
WCHAR
*
divider
=
strchrW
(
p
,
'='
);
WCHAR
*
divider
=
wcschr
(
p
,
'='
);
if
(
divider
)
{
...
...
@@ -1519,7 +1518,7 @@ BOOL WINAPI SQLValidDSNW(LPCWSTR lpszDSN)
clear_errors
();
TRACE
(
"%s
\n
"
,
debugstr_w
(
lpszDSN
));
if
(
strlenW
(
lpszDSN
)
>
SQL_MAX_DSN_LENGTH
||
strpbrkW
(
lpszDSN
,
invalid
)
!=
NULL
)
if
(
lstrlenW
(
lpszDSN
)
>
SQL_MAX_DSN_LENGTH
||
wcspbrk
(
lpszDSN
,
invalid
)
!=
NULL
)
{
return
FALSE
;
}
...
...
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