Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace / with : in ConnectionString #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions dlls/odbc32/proxyodbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1779,10 +1779,21 @@ SQLRETURN WINAPI SQLDriverConnect(SQLHDBC hdbc, SQLHWND hwnd, SQLCHAR *Connectio
SQLCHAR *conn_str_out, SQLSMALLINT conn_str_out_max,
SQLSMALLINT *ptr_conn_str_out, SQLUSMALLINT driver_completion)
{
static const char *serverStr="SERVER=";
struct SQLDriverConnect_params params = { hdbc, hwnd, ConnectionString, Length, conn_str_out,
conn_str_out_max, ptr_conn_str_out, driver_completion };
SQLRETURN ret;

SQLCHAR *serverPos;
for (serverPos = strstr(ConnectionString,serverStr);(*serverPos != ';') && (*serverPos != '\0'); ++serverPos)
{
if (*serverPos == '/')
{
*serverPos = ':';
break;
}
}

TRACE("(hdbc %p, hwnd %p, ConnectionString %s, Length %d, conn_str_out %p, conn_str_out_max %d,"
" ptr_conn_str_out %p, driver_completion %d)\n", hdbc, hwnd,
debugstr_an((const char *)ConnectionString, Length), Length, conn_str_out, conn_str_out_max,
Expand Down