imagehlp: Do not pass NULL to WriteFile as lpNumberOfBytesWritten.
This commit is contained in:
parent
132937a4e8
commit
fd181c4937
|
@ -461,7 +461,7 @@ BOOL WINAPI ImageAddCertificate(
|
||||||
char null[8];
|
char null[8];
|
||||||
|
|
||||||
ZeroMemory(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);
|
size += 8 - (Certificate->dwLength % 8);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue