mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[warnings] fix type mismatches
This commit is contained in:
@@ -1898,5 +1898,6 @@ X509* freerdp_certificate_get_chain_at(rdpCertificate* certificate, size_t offse
|
||||
{
|
||||
WINPR_ASSERT(certificate);
|
||||
WINPR_ASSERT(freerdp_certificate_get_chain_len(certificate) > offset);
|
||||
return sk_X509_value(certificate->chain, offset);
|
||||
const int ioff = WINPR_ASSERTING_INT_CAST(int, offset);
|
||||
return sk_X509_value(certificate->chain, ioff);
|
||||
}
|
||||
|
||||
@@ -1358,7 +1358,7 @@ HANDLE winpr_CreateFile(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareM
|
||||
LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition,
|
||||
DWORD dwFlagsAndAttributes, HANDLE hTemplateFile)
|
||||
{
|
||||
char* filename = ConvertUtf8ToWCharAlloc(lpFileName, NULL);
|
||||
WCHAR* filename = ConvertUtf8ToWCharAlloc(lpFileName, NULL);
|
||||
if (!filename)
|
||||
return NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user