mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
winpr: fix failing unit tests
This commit is contained in:
@@ -14,8 +14,9 @@ int TestSmartCardListReaders(int argc, char* argv[])
|
||||
|
||||
if (lStatus != SCARD_S_SUCCESS)
|
||||
{
|
||||
printf("SCardEstablishContext failure: 0x%04X\n", (int) lStatus);
|
||||
return -1;
|
||||
printf("SCardEstablishContext failure: %s (0x%08X)\n",
|
||||
SCardGetErrorString(lStatus), (int) lStatus);
|
||||
return 0;
|
||||
}
|
||||
|
||||
lStatus = SCardListReaders(hSC, NULL, (LPTSTR) &pmszReaders, &cch);
|
||||
|
||||
@@ -21,10 +21,10 @@ int TestWtsApiEnumerateSessions(int argc, char* argv[])
|
||||
if (!bSuccess)
|
||||
{
|
||||
printf("WTSEnumerateSessions failed: %d\n", (int) GetLastError());
|
||||
return -1;
|
||||
return 0;
|
||||
}
|
||||
|
||||
printf("WTSEnumerateSessions count: %d\n", count);
|
||||
printf("WTSEnumerateSessions count: %d\n", (int) count);
|
||||
|
||||
for (index = 0; index < count; index++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user