mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-14 16:34:18 +09:00
[warnings] make function declaration names consistent
Use the same parameter names for declaration and implementation.
This commit is contained in:
@@ -392,7 +392,7 @@ extern "C"
|
||||
*/
|
||||
WINPR_ATTR_MALLOC(CloseHandle, 1)
|
||||
WINPR_ATTR_NODISCARD
|
||||
WINPR_API HANDLE CommCreateFileA(LPCSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode,
|
||||
WINPR_API HANDLE CommCreateFileA(LPCSTR lpDeviceName, DWORD dwDesiredAccess, DWORD dwShareMode,
|
||||
LPSECURITY_ATTRIBUTES lpSecurityAttributes,
|
||||
DWORD dwCreationDisposition, DWORD dwFlagsAndAttributes,
|
||||
HANDLE hTemplateFile);
|
||||
|
||||
@@ -209,12 +209,12 @@ BOOL CredMarshalCredentialA(CRED_MARSHAL_TYPE CredType, PVOID Credential,
|
||||
}
|
||||
}
|
||||
|
||||
BOOL CredUnmarshalCredentialW(LPCWSTR cred, PCRED_MARSHAL_TYPE pcredType, PVOID* out)
|
||||
BOOL CredUnmarshalCredentialW(LPCWSTR cred, PCRED_MARSHAL_TYPE CredType, PVOID* Credential)
|
||||
{
|
||||
char* str = NULL;
|
||||
if (cred)
|
||||
str = ConvertWCharToUtf8Alloc(cred, NULL);
|
||||
const BOOL rc = CredUnmarshalCredentialA(str, pcredType, out);
|
||||
const BOOL rc = CredUnmarshalCredentialA(str, CredType, Credential);
|
||||
free(str);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -111,7 +111,7 @@ SECURITY_STATUS NCryptEnumStorageProviders(DWORD* wProviderCount,
|
||||
size_t stringAllocSize = 0;
|
||||
#ifdef WITH_PKCS11
|
||||
LPWSTR strPtr = NULL;
|
||||
static const WCHAR emptyComment[] = WINPR_C_ARRAY_INIT;
|
||||
static const WCHAR emptyComment[1] = WINPR_C_ARRAY_INIT;
|
||||
size_t copyAmount = 0;
|
||||
#endif
|
||||
|
||||
|
||||
@@ -177,20 +177,20 @@ double WINPR_JSON_GetNumberValue(const WINPR_JSON* item)
|
||||
return json_number_value(ccast(item));
|
||||
}
|
||||
|
||||
BOOL WINPR_JSON_IsInvalid(const WINPR_JSON* json)
|
||||
BOOL WINPR_JSON_IsInvalid(const WINPR_JSON* item)
|
||||
{
|
||||
const json_t* item = ccast(json);
|
||||
if (WINPR_JSON_IsArray(item))
|
||||
const json_t* jitem = ccast(item);
|
||||
if (WINPR_JSON_IsArray(jitem))
|
||||
return FALSE;
|
||||
if (WINPR_JSON_IsObject(item))
|
||||
if (WINPR_JSON_IsObject(jitem))
|
||||
return FALSE;
|
||||
if (WINPR_JSON_IsNull(item))
|
||||
if (WINPR_JSON_IsNull(jitem))
|
||||
return FALSE;
|
||||
if (WINPR_JSON_IsNumber(item))
|
||||
if (WINPR_JSON_IsNumber(jitem))
|
||||
return FALSE;
|
||||
if (WINPR_JSON_IsBool(item))
|
||||
if (WINPR_JSON_IsBool(jitem))
|
||||
return FALSE;
|
||||
if (WINPR_JSON_IsString(item))
|
||||
if (WINPR_JSON_IsString(jitem))
|
||||
return FALSE;
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user