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

Alexandre Julliard julliard at wine.codeweavers.com
Mon Aug 18 16:08:48 CDT 2014


Module: wine
Branch: master
Commit: 0b2e7de7b48554698c3c757356da9362b3c3cdaf
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0b2e7de7b48554698c3c757356da9362b3c3cdaf

Author: Bernhard Reiter <ockham at raz.or.at>
Date:   Sat Aug 16 21:31:44 2014 +0200

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

---

 dlls/imagehlp/tests/image.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/dlls/imagehlp/tests/image.c b/dlls/imagehlp/tests/image.c
index 1f1862b..48443f5 100644
--- a/dlls/imagehlp/tests/image.c
+++ b/dlls/imagehlp/tests/image.c
@@ -405,7 +405,12 @@ static void test_bind_image_ex(void)
     WriteFile(file, &bin, sizeof(bin), &count, NULL);
     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,
                        testing_status_routine);
     ok(ret, "BindImageEx failed: %d\n", GetLastError());




More information about the wine-cvs mailing list