Commit 0abae2aa authored by Kai Koehne's avatar Kai Koehne Committed by Qt by Nokia
Browse files

Network: Fix gcc warning about conversion from string to wchar *


Fix gcc 4.7 warning:
'deprecated conversion from string constant to 'SEC_WCHAR*'

Change-Id: I5df44ffdc0d505789f99b58d68e02b7535ce761b
Reviewed-by: default avatarQt Doc Bot <qt_docbot@qt-project.org>
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent baf8a2fb
No related merge requests found
Showing with 2 additions and 2 deletions
...@@ -1551,7 +1551,7 @@ static QByteArray qNtlmPhase1_SSPI(QAuthenticatorPrivate *ctx) ...@@ -1551,7 +1551,7 @@ static QByteArray qNtlmPhase1_SSPI(QAuthenticatorPrivate *ctx)
ULONG attrs; ULONG attrs;
secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle, NULL, secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle, NULL,
L"" /* host */, const_cast<SEC_WCHAR*>(L"") /* host */,
ISC_REQ_ALLOCATE_MEMORY, ISC_REQ_ALLOCATE_MEMORY,
0, SECURITY_NETWORK_DREP, 0, SECURITY_NETWORK_DREP,
NULL, 0, NULL, 0,
...@@ -1613,7 +1613,7 @@ static QByteArray qNtlmPhase3_SSPI(QAuthenticatorPrivate *ctx, const QByteArray& ...@@ -1613,7 +1613,7 @@ static QByteArray qNtlmPhase3_SSPI(QAuthenticatorPrivate *ctx, const QByteArray&
SECURITY_STATUS secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle, SECURITY_STATUS secStatus = pSecurityFunctionTable->InitializeSecurityContext(&ctx->ntlmWindowsHandles->credHandle,
&ctx->ntlmWindowsHandles->ctxHandle, &ctx->ntlmWindowsHandles->ctxHandle,
L"" /* host */, const_cast<SEC_WCHAR*>(L"") /* host */,
ISC_REQ_ALLOCATE_MEMORY, ISC_REQ_ALLOCATE_MEMORY,
0, SECURITY_NETWORK_DREP, &type_2_desc, 0, SECURITY_NETWORK_DREP, &type_2_desc,
0, &ctx->ntlmWindowsHandles->ctxHandle, &type_3_desc, 0, &ctx->ntlmWindowsHandles->ctxHandle, &type_3_desc,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment