Commit 0b2e7de7 authored by Bernhard Reiter's avatar Bernhard Reiter Committed by Alexandre Julliard

imagehlp/tests: Add test for BindImageEx with NULL as StatusRoutine.

parent 8fb0fd77
...@@ -405,7 +405,12 @@ static void test_bind_image_ex(void) ...@@ -405,7 +405,12 @@ static void test_bind_image_ex(void)
WriteFile(file, &bin, sizeof(bin), &count, NULL); WriteFile(file, &bin, sizeof(bin), &count, NULL);
CloseHandle(file); CloseHandle(file);
/* call with a proper PE file */ /* call with a proper PE file, but with StatusRoutine set to NULL */
ret = pBindImageEx(BIND_NO_BOUND_IMPORTS | BIND_NO_UPDATE | BIND_ALL_IMAGES, temp_file, 0, 0,
NULL);
ok(ret, "BindImageEx failed: %d\n", GetLastError());
/* call with a proper PE file and StatusRoutine */
ret = pBindImageEx(BIND_NO_BOUND_IMPORTS | BIND_NO_UPDATE | BIND_ALL_IMAGES, temp_file, 0, 0, ret = pBindImageEx(BIND_NO_BOUND_IMPORTS | BIND_NO_UPDATE | BIND_ALL_IMAGES, temp_file, 0, 0,
testing_status_routine); testing_status_routine);
ok(ret, "BindImageEx failed: %d\n", GetLastError()); ok(ret, "BindImageEx failed: %d\n", GetLastError());
......
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