Commit fd181c49 authored by Thomas Faber's avatar Thomas Faber Committed by Alexandre Julliard

imagehlp: Do not pass NULL to WriteFile as lpNumberOfBytesWritten.

parent 132937a4
......@@ -461,7 +461,7 @@ BOOL WINAPI ImageAddCertificate(
char null[8];
ZeroMemory(null, 8);
WriteFile(FileHandle, null, 8 - (Certificate->dwLength % 8), NULL, NULL);
WriteFile(FileHandle, null, 8 - (Certificate->dwLength % 8), &count, NULL);
size += 8 - (Certificate->dwLength % 8);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment