mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 04:08:31 +00:00
odbccp32: SQLConfigDataSource/W fix crash with passed NULL attribute parameter.
This commit is contained in:
parent
6dca99a713
commit
4aab3e42c1
|
@ -372,7 +372,7 @@ BOOL WINAPI SQLConfigDataSourceW(HWND hwnd, WORD request, LPCWSTR driver, LPCWST
|
|||
WORD mapped_request;
|
||||
|
||||
TRACE("%p, %d, %s, %s\n", hwnd, request, debugstr_w(driver), debugstr_w(attributes));
|
||||
if (TRACE_ON(odbc))
|
||||
if (TRACE_ON(odbc) && attributes)
|
||||
{
|
||||
const WCHAR *p;
|
||||
for (p = attributes; *p; p += lstrlenW(p) + 1)
|
||||
|
@ -417,7 +417,7 @@ BOOL WINAPI SQLConfigDataSource(HWND hwnd, WORD request, LPCSTR driver, LPCSTR a
|
|||
|
||||
TRACE("%p, %d, %s, %s\n", hwnd, request, debugstr_a(driver), debugstr_a(attributes));
|
||||
|
||||
if (TRACE_ON(odbc))
|
||||
if (TRACE_ON(odbc) && attributes)
|
||||
{
|
||||
const char *p;
|
||||
for (p = attributes; *p; p += lstrlenA(p) + 1)
|
||||
|
|
Loading…
Reference in a new issue