Commit 3b0924cf authored by Dan Kegel's avatar Dan Kegel Committed by Alexandre Julliard

kernel32/tests: Initialize buffer.

parent 3a84cbe7
...@@ -223,6 +223,7 @@ static void test_FindFirstChangeNotification(void) ...@@ -223,6 +223,7 @@ static void test_FindFirstChangeNotification(void)
file = CreateFileA(filename2, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, file = CreateFileA(filename2, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS,
FILE_ATTRIBUTE_NORMAL, 0); FILE_ATTRIBUTE_NORMAL, 0);
ok(file != INVALID_HANDLE_VALUE, "CreateFileA error: %d\n", GetLastError()); ok(file != INVALID_HANDLE_VALUE, "CreateFileA error: %d\n", GetLastError());
memset(buffer, 0, sizeof(buffer));
ret = WriteFile(file, buffer, sizeof(buffer), &count, NULL); ret = WriteFile(file, buffer, sizeof(buffer), &count, NULL);
ok(ret && count == sizeof(buffer), "WriteFile error: %d\n", GetLastError()); ok(ret && count == sizeof(buffer), "WriteFile error: %d\n", GetLastError());
ret = CloseHandle(file); ret = CloseHandle(file);
......
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