- DBGKD_WAIT_STATE_CHANGE64 is used in KD protocol 5, not number 6 that we use. Proto...
[reactos.git] / reactos / lib / inflib / infhostput.c
index 55ced93..3eb5970 100644 (file)
@@ -43,7 +43,7 @@ InfHostWriteFile(HINF InfHandle, const CHAR *FileName,
       fprintf(File, "; %s\r\n\r\n", HeaderComment);
     }
 
-  if (BufferSize != fwrite(Buffer, 1, BufferSize, File))
+  if (BufferSize != fwrite(Buffer, (size_t)1, (size_t)BufferSize, File))
     {
       DPRINT1("fwrite() failed (errno %d)\n", errno);
       fclose(File);