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
b234bb49
Commit
b234bb49
authored
Sep 13, 2010
by
Alexandre Goujon
Committed by
Alexandre Julliard
Sep 13, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbccp32: Fix SQLInstallDriverManager{,W}.
parent
6d20893b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
odbccp32.c
dlls/odbccp32/odbccp32.c
+10
-2
misc.c
dlls/odbccp32/tests/misc.c
+0
-5
No files found.
dlls/odbccp32/odbccp32.c
View file @
b234bb49
...
...
@@ -522,9 +522,13 @@ BOOL WINAPI SQLInstallDriverManagerW(LPWSTR lpszPath, WORD cbPathMax,
UINT
len
;
WCHAR
path
[
MAX_PATH
];
clear_errors
();
TRACE
(
"(%p %d %p)
\n
"
,
lpszPath
,
cbPathMax
,
pcbPathOut
);
if
(
cbPathMax
<
MAX_PATH
)
return
FALSE
;
clear_errors
();
len
=
GetSystemDirectoryW
(
path
,
MAX_PATH
);
if
(
pcbPathOut
)
...
...
@@ -545,9 +549,13 @@ BOOL WINAPI SQLInstallDriverManager(LPSTR lpszPath, WORD cbPathMax,
WORD
len
,
cbOut
=
0
;
WCHAR
path
[
MAX_PATH
];
clear_errors
();
TRACE
(
"(%p %d %p)
\n
"
,
lpszPath
,
cbPathMax
,
pcbPathOut
);
if
(
cbPathMax
<
MAX_PATH
)
return
FALSE
;
clear_errors
();
ret
=
SQLInstallDriverManagerW
(
path
,
MAX_PATH
,
&
cbOut
);
if
(
ret
)
{
...
...
dlls/odbccp32/tests/misc.c
View file @
b234bb49
...
...
@@ -86,28 +86,23 @@ static void test_SQLInstallDriverManager(void)
bool_ret
=
SQLInstallDriverManager
(
NULL
,
0
,
NULL
);
sql_ret
=
SQLInstallerErrorW
(
1
,
&
error_code
,
NULL
,
0
,
NULL
);
ok
(
!
bool_ret
,
"SQLInstallDriverManager unexpectedly succeeded
\n
"
);
todo_wine
ok
(
sql_ret
==
SQL_SUCCESS_WITH_INFO
&&
error_code
==
ODBC_ERROR_INVALID_BUFF_LEN
,
"Expected SQLInstallDriverManager to fail with ODBC_ERROR_INVALID_BUFF_LEN
\n
"
);
/* Length smaller than MAX_PATH */
bool_ret
=
SQLInstallDriverManager
(
target_path
,
MAX_PATH
/
2
,
NULL
);
sql_ret
=
SQLInstallerErrorW
(
1
,
&
error_code
,
NULL
,
0
,
NULL
);
todo_wine
{
ok
(
!
bool_ret
,
"SQLInstallDriverManager unexpectedly succeeded
\n
"
);
ok
(
sql_ret
==
SQL_SUCCESS_WITH_INFO
&&
error_code
==
ODBC_ERROR_INVALID_BUFF_LEN
,
"Expected SQLInstallDriverManager to fail with ODBC_ERROR_INVALID_BUFF_LEN
\n
"
);
}
path_out
=
0xcafe
;
bool_ret
=
SQLInstallDriverManager
(
target_path
,
MAX_PATH
/
2
,
&
path_out
);
sql_ret
=
SQLInstallerErrorW
(
1
,
&
error_code
,
NULL
,
0
,
NULL
);
todo_wine
{
ok
(
!
bool_ret
,
"SQLInstallDriverManager unexpectedly succeeded
\n
"
);
ok
(
sql_ret
==
SQL_SUCCESS_WITH_INFO
&&
error_code
==
ODBC_ERROR_INVALID_BUFF_LEN
,
"Expected SQLInstallDriverManager to fail with ODBC_ERROR_INVALID_BUFF_LEN
\n
"
);
ok
(
path_out
==
0xcafe
,
"Expected path_out to not have changed
\n
"
);
}
/* Length OK */
bool_ret
=
SQLInstallDriverManager
(
target_path
,
MAX_PATH
,
NULL
);
...
...
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