[PATCH 0/1] MR6102: odbc32: Handle NULL attribute in SQLColAttributeW.
From: Daniel Lehman <dlehman25(a)gmail.com> --- dlls/odbc32/proxyodbc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/odbc32/proxyodbc.c b/dlls/odbc32/proxyodbc.c index 46f96651b1d..00a9c1181ba 100644 --- a/dlls/odbc32/proxyodbc.c +++ b/dlls/odbc32/proxyodbc.c @@ -3928,7 +3928,7 @@ static SQLRETURN col_attribute_unix_w( struct handle *handle, SQLUSMALLINT col, INT64 attr; struct SQLColAttributeW_params params = { handle->unix_handle, col, field_id, char_attr, buflen, retlen, &attr }; - if (SUCCESS((ret = ODBC_CALL( SQLColAttributeW, ¶ms )))) *num_attr = attr; + if (SUCCESS((ret = ODBC_CALL( SQLColAttributeW, ¶ms ))) && num_attr) *num_attr = attr; if (ret == SQL_SUCCESS && SQLColAttributes_KnownStringAttribute(field_id) && char_attr && retlen && *retlen != wcslen( char_attr ) * sizeof(WCHAR)) -- GitLab https://gitlab.winehq.org/wine/wine/-/merge_requests/6102
participants (2)
-
Daniel Lehman -
Daniel Lehman (@dlehman25)