Fixed compiler warnings

This commit is contained in:
akallabeth 2023-01-10 14:19:00 +01:00 committed by akallabeth
parent b0c924a98e
commit 2479ebd816
2 changed files with 2 additions and 3 deletions

View File

@ -392,7 +392,6 @@ static void rdpdr_dump_packet(wLog* log, DWORD lvl, wStream* s, const char* cust
case PAKID_CORE_CLIENT_CAPABILITY:
case PAKID_CORE_SERVER_CAPABILITY:
{
size_t offset = 8;
UINT16 numCapabilities = 0;
if (pos >= 6)
Stream_Read_UINT16(s, numCapabilities);

View File

@ -83,7 +83,7 @@ int TestNCryptSmartcard(int argc, char* argv[])
if (ConvertWCharToUtf8(name->pszName, providerNameStr, ARRAYSIZE(providerNameStr)) < 0)
continue;
printf("provider %ld: %s\n", j, providerNameStr);
printf("provider %" PRIuz ": %s\n", j, providerNameStr);
status = NCryptOpenStorageProvider(&provider, name->pszName, 0);
if (status != ERROR_SUCCESS)
@ -101,7 +101,7 @@ int TestNCryptSmartcard(int argc, char* argv[])
if (ConvertWCharToUtf8(keyName->pszName, keyNameStr, ARRAYSIZE(keyNameStr)) < 0)
continue;
printf("\tkey %ld: %s\n", i, keyNameStr);
printf("\tkey %" PRIuz ": %s\n", i, keyNameStr);
status = NCryptOpenKey(provider, &phKey, keyName->pszName, keyName->dwLegacyKeySpec,
dwFlags);
if (status != ERROR_SUCCESS)