Hans Leidekker : wbemprox: Avoid an exception when tracing the principal name in IClientSecurity:: SetBlanket.
Alexandre Julliard
julliard at winehq.org
Fri Jun 29 14:24:30 CDT 2012
Module: wine
Branch: master
Commit: 796dd428c257d8790d39b6a7d0b12c330064bf47
URL: http://source.winehq.org/git/wine.git/?a=commit;h=796dd428c257d8790d39b6a7d0b12c330064bf47
Author: Hans Leidekker <hans at codeweavers.com>
Date: Fri Jun 29 13:40:35 2012 +0200
wbemprox: Avoid an exception when tracing the principal name in IClientSecurity::SetBlanket.
---
dlls/wbemprox/services.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/dlls/wbemprox/services.c b/dlls/wbemprox/services.c
index 2e8a34a..8edd2f6 100644
--- a/dlls/wbemprox/services.c
+++ b/dlls/wbemprox/services.c
@@ -106,8 +106,12 @@ static HRESULT WINAPI client_security_SetBlanket(
void *pAuthInfo,
DWORD Capabilities )
{
+ static const OLECHAR defaultW[] =
+ {'<','C','O','L','E','_','D','E','F','A','U','L','T','_','P','R','I','N','C','I','P','A','L','>',0};
+ const OLECHAR *princname = (pServerPrincName == COLE_DEFAULT_PRINCIPAL) ? defaultW : pServerPrincName;
+
FIXME("%p, %p, %u, %u, %s, %u, %u, %p, 0x%08x\n", iface, pProxy, AuthnSvc, AuthzSvc,
- debugstr_w(pServerPrincName), AuthnLevel, ImpLevel, pAuthInfo, Capabilities);
+ debugstr_w(princname), AuthnLevel, ImpLevel, pAuthInfo, Capabilities);
return WBEM_NO_ERROR;
}
More information about the wine-cvs
mailing list