From a04024cdc84337d17ac6da7e8011199069aa43d3 Mon Sep 17 00:00:00 2001
From: Thomas Faber <thfabba@gmx.de>
Date: Wed, 20 Jun 2012 23:48:44 +0200
Subject: imagehlp: Do not pass NULL to WriteFile as lpNumberOfBytesWritten.

---
 dlls/imagehlp/integrity.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/imagehlp/integrity.c b/dlls/imagehlp/integrity.c
index c6d490c..d86ec11 100644
--- a/dlls/imagehlp/integrity.c
+++ b/dlls/imagehlp/integrity.c
@@ -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);
     }
-- 
1.7.3.4
