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
f36c9624
Commit
f36c9624
authored
Oct 25, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 27, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Sign-compare warnings fix.
parent
19464a6b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
proxyodbc.c
dlls/odbc32/proxyodbc.c
+6
-6
No files found.
dlls/odbc32/proxyodbc.c
View file @
f36c9624
...
@@ -211,7 +211,7 @@ static void ODBC_ReplicateODBCInstToRegistry (SQLHENV hEnv)
...
@@ -211,7 +211,7 @@ static void ODBC_ReplicateODBCInstToRegistry (SQLHENV hEnv)
{
{
/* FIXME Do some proper handling of the SUCCESS_WITH_INFO */
/* FIXME Do some proper handling of the SUCCESS_WITH_INFO */
dirn
=
SQL_FETCH_NEXT
;
dirn
=
SQL_FETCH_NEXT
;
if
(
sizedesc
==
strlen
(
desc
))
if
(
sizedesc
==
lstrlenA
(
desc
))
{
{
HKEY
hThis
;
HKEY
hThis
;
if
((
reg_ret
=
RegQueryValueExA
(
hDrivers
,
desc
,
NULL
,
if
((
reg_ret
=
RegQueryValueExA
(
hDrivers
,
desc
,
NULL
,
...
@@ -339,7 +339,7 @@ static void ODBC_ReplicateODBCToRegistry (int is_user, SQLHENV hEnv)
...
@@ -339,7 +339,7 @@ static void ODBC_ReplicateODBCToRegistry (int is_user, SQLHENV hEnv)
{
{
/* FIXME Do some proper handling of the SUCCESS_WITH_INFO */
/* FIXME Do some proper handling of the SUCCESS_WITH_INFO */
dirn
=
SQL_FETCH_NEXT
;
dirn
=
SQL_FETCH_NEXT
;
if
(
sizedsn
==
strlen
(
dsn
)
&&
sizedesc
==
strlen
(
desc
))
if
(
sizedsn
==
lstrlenA
(
dsn
)
&&
sizedesc
==
lstrlenA
(
desc
))
{
{
HKEY
hDSN
;
HKEY
hDSN
;
if
((
reg_ret
=
RegCreateKeyExA
(
hODBC
,
dsn
,
0
,
if
((
reg_ret
=
RegCreateKeyExA
(
hODBC
,
dsn
,
0
,
...
@@ -2155,9 +2155,9 @@ SQLRETURN WINAPI SQLColAttributesW(
...
@@ -2155,9 +2155,9 @@ SQLRETURN WINAPI SQLColAttributesW(
TRACE(" Attribute name : %s\n", debugstr_w(rgbDesc));
TRACE(" Attribute name : %s\n", debugstr_w(rgbDesc));
TRACE(" Declared length: %d\n", *pcbDesc);
TRACE(" Declared length: %d\n", *pcbDesc);
*/
*/
if
(
*
pcbDesc
!=
strlenW
(
rgbDesc
)
*
2
)
{
if
(
*
pcbDesc
!=
l
strlenW
(
rgbDesc
)
*
2
)
{
TRACE
(
"CHEAT: resetting name length for ADO
\n
"
);
TRACE
(
"CHEAT: resetting name length for ADO
\n
"
);
*
pcbDesc
=
strlenW
(
rgbDesc
)
*
2
;
*
pcbDesc
=
l
strlenW
(
rgbDesc
)
*
2
;
}
}
}
}
return
iResult
;
return
iResult
;
...
@@ -2331,9 +2331,9 @@ SQLRETURN WINAPI SQLColAttributeW (SQLHSTMT StatementHandle,
...
@@ -2331,9 +2331,9 @@ SQLRETURN WINAPI SQLColAttributeW (SQLHSTMT StatementHandle,
TRACE(" Attribute name : %s\n", debugstr_w(rgbDesc));
TRACE(" Attribute name : %s\n", debugstr_w(rgbDesc));
TRACE(" Declared length: %d\n", *pcbDesc);
TRACE(" Declared length: %d\n", *pcbDesc);
*/
*/
if
(
*
StringLength
!=
strlenW
(
CharacterAttribute
)
*
2
)
{
if
(
*
StringLength
!=
l
strlenW
(
CharacterAttribute
)
*
2
)
{
TRACE
(
"CHEAT: resetting name length for ADO
\n
"
);
TRACE
(
"CHEAT: resetting name length for ADO
\n
"
);
*
StringLength
=
strlenW
(
CharacterAttribute
)
*
2
;
*
StringLength
=
l
strlenW
(
CharacterAttribute
)
*
2
;
}
}
}
}
return
iResult
;
return
iResult
;
...
...
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