Re: [resent] Fix some hackish usages of WideCharToMultiByte

2008-07-31 Thread Colin Finck
Alexandre Julliard wrote: > It would be cleaner to pass the actual buffer size to the function, it's > complex enough that it would be easy to inadvertently break the > guarantee that the allocated space is large enough. We already pass a length pointer to that "convert_PCREDENTIALW_to_PCREDENTIA

Re: [resent] Fix some hackish usages of WideCharToMultiByte

2008-07-31 Thread Alexandre Julliard
"Colin Finck" <[EMAIL PROTECTED]> writes: > @@ -947,7 +947,8 @@ static void convert_PCREDENTIALW_to_PCREDENTIALA(const > CREDENTIALW *CredentialW, > if (CredentialW->TargetName) > { > CredentialA->TargetName = buffer; > -string_len = WideCharToMultiByte(CP_ACP, 0, Crede