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
b5732b1c
Commit
b5732b1c
authored
Jan 21, 2015
by
André Hentschel
Committed by
Alexandre Julliard
Jan 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
odbc32: Add winediag message when no drivers could be found.
parent
0b811eea
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
6 deletions
+23
-6
proxyodbc.c
dlls/odbc32/proxyodbc.c
+23
-6
No files found.
dlls/odbc32/proxyodbc.c
View file @
b5732b1c
...
...
@@ -49,6 +49,7 @@ static BOOL ODBC_LoadDriverManager(void);
static
BOOL
ODBC_LoadDMFunctions
(
void
);
WINE_DEFAULT_DEBUG_CHANNEL
(
odbc
);
WINE_DECLARE_DEBUG_CHANNEL
(
winediag
);
static
SQLRETURN
(
*
pSQLAllocConnect
)(
SQLHENV
,
SQLHDBC
*
);
static
SQLRETURN
(
*
pSQLAllocEnv
)(
SQLHENV
*
);
...
...
@@ -1914,11 +1915,19 @@ SQLRETURN WINAPI SQLDrivers(
SQLSMALLINT
cbDriverAttrMax
,
SQLSMALLINT
*
pcbDriverAttr
)
{
TRACE
(
"
\n
"
);
SQLRETURN
ret
;
TRACE
(
"direction=%d
\n
"
,
fDirection
);
if
(
!
pSQLDrivers
)
return
SQL_ERROR
;
return
pSQLDrivers
(
henv
,
fDirection
,
szDriverDesc
,
cbDriverDescMax
,
pcbDriverDesc
,
szDriverAttributes
,
cbDriverAttrMax
,
pcbDriverAttr
);
ret
=
pSQLDrivers
(
henv
,
fDirection
,
szDriverDesc
,
cbDriverDescMax
,
pcbDriverDesc
,
szDriverAttributes
,
cbDriverAttrMax
,
pcbDriverAttr
);
if
(
ret
==
SQL_NO_DATA
&&
fDirection
==
SQL_FETCH_FIRST
)
ERR_
(
winediag
)(
"No ODBC drivers could be found. "
"Check the settings for your libodbc provider.
\n
"
);
return
ret
;
}
...
...
@@ -2647,11 +2656,19 @@ SQLRETURN WINAPI SQLDriversW(
SQLSMALLINT
cbDriverAttrMax
,
SQLSMALLINT
*
pcbDriverAttr
)
{
TRACE
(
"
\n
"
);
SQLRETURN
ret
;
TRACE
(
"direction=%d
\n
"
,
fDirection
);
if
(
!
pSQLDriversW
)
return
SQL_ERROR
;
return
pSQLDriversW
(
henv
,
fDirection
,
szDriverDesc
,
cbDriverDescMax
,
pcbDriverDesc
,
szDriverAttributes
,
cbDriverAttrMax
,
pcbDriverAttr
);
ret
=
pSQLDriversW
(
henv
,
fDirection
,
szDriverDesc
,
cbDriverDescMax
,
pcbDriverDesc
,
szDriverAttributes
,
cbDriverAttrMax
,
pcbDriverAttr
);
if
(
ret
==
SQL_NO_DATA
&&
fDirection
==
SQL_FETCH_FIRST
)
ERR_
(
winediag
)(
"No ODBC drivers could be found. "
"Check the settings for your libodbc provider.
\n
"
);
return
ret
;
}
/*************************************************************************
...
...
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