Skip to content

Commit 45f8e7a

Browse files
committed
Clang isn't able to handle the non-::'d prefix function. Probably a clang bug.
Bad cast, same as a few others.
1 parent 3491acb commit 45f8e7a

File tree

1 file changed

+4
-4
lines changed
  • jdk/src/windows/native/sun/security/jgss/sspi_bridge

1 file changed

+4
-4
lines changed

jdk/src/windows/native/sun/security/jgss/sspi_bridge/sspi.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ gss_acquire_cred(OM_uint32 *minor_status,
648648
if (cred->phCredK == NULL) {
649649
goto err;
650650
}
651-
ss = AcquireCredentialsHandle(
651+
ss = ::AcquireCredentialsHandle(
652652
NULL,
653653
L"Kerberos",
654654
cred_usage == 0 ? SECPKG_CRED_BOTH :
@@ -678,7 +678,7 @@ gss_acquire_cred(OM_uint32 *minor_status,
678678
auth.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
679679
auth.PackageList = (unsigned short*)L"Kerberos";
680680
auth.PackageListLength = 8;
681-
ss = AcquireCredentialsHandle(
681+
ss = ::AcquireCredentialsHandle(
682682
NULL,
683683
L"Negotiate",
684684
cred_usage == 0 ? SECPKG_CRED_BOTH :
@@ -936,9 +936,9 @@ gss_init_sec_context(OM_uint32 *minor_status,
936936
auth.Flags = SEC_WINNT_AUTH_IDENTITY_UNICODE;
937937
auth.PackageList = (unsigned short*)L"Kerberos";
938938
auth.PackageListLength = 8;
939-
ss = AcquireCredentialsHandle(
939+
ss = ::AcquireCredentialsHandle(
940940
NULL,
941-
isSPNEGO ? L"Negotiate" : L"Kerberos",
941+
isSPNEGO ? (LPTSTR)L"Negotiate" : (LPTSTR)L"Kerberos",
942942
SECPKG_CRED_OUTBOUND,
943943
NULL,
944944
isSPNEGO ? &auth : NULL,

0 commit comments

Comments
 (0)