[winpr,file] fix unit test for WriteFile

This commit is contained in:
Armin Novak
2026-02-24 18:51:16 +01:00
parent 5b23142636
commit 5479777822

View File

@@ -37,7 +37,7 @@ int TestFileGetStdHandle(int argc, char* argv[])
(void)fprintf(stderr, "GetStdHandle failed ;(\n");
return -1;
}
WriteFile(so, buf, strnlen(buf, sizeof(buf)), &bytesWritten, FALSE);
WriteFile(so, buf, strnlen(buf, sizeof(buf)), &bytesWritten, NULL);
if (bytesWritten != strnlen(buf, sizeof(buf)))
{
(void)fprintf(stderr, "write failed\n");