Stefan Leichter : kernel: Fix CreateToolhelp32Snapshot tests on win2k.

Alexandre Julliard julliard at wine.codeweavers.com
Thu May 11 05:56:26 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 72a6d976794bf4c4f52bdf5ac7e3cc67593b387a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=72a6d976794bf4c4f52bdf5ac7e3cc67593b387a

Author: Stefan Leichter <Stefan.Leichter at camLine.com>
Date:   Wed May 10 23:05:17 2006 +0200

kernel:	Fix CreateToolhelp32Snapshot tests on win2k.

---

 dlls/kernel/tests/toolhelp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel/tests/toolhelp.c b/dlls/kernel/tests/toolhelp.c
index 5b96a99..2b4a150 100644
--- a/dlls/kernel/tests/toolhelp.c
+++ b/dlls/kernel/tests/toolhelp.c
@@ -244,7 +244,7 @@ static void test_module(DWORD pid, const
                   me.th32ProcessID, me.modBaseAddr, me.modBaseSize, me.szExePath, me.szModule);
             ok(me.th32ProcessID == pid, "wrong returned process id");
             for (i = 0; i < num_expected; i++)
-                if (!strcmp(expected[i], me.szModule)) found[i]++;
+                if (!lstrcmpi(expected[i], me.szModule)) found[i]++;
             num++;
         } while (pModule32Next( hSnapshot, &me ));
     }
@@ -262,7 +262,7 @@ static void test_module(DWORD pid, const
             trace("PID=%lx base=%p size=%lx %s %s\n",
                   me.th32ProcessID, me.modBaseAddr, me.modBaseSize, me.szExePath, me.szModule);
             for (i = 0; i < num_expected; i++)
-                if (!strcmp(expected[i], me.szModule)) found[i]++;
+                if (!lstrcmpi(expected[i], me.szModule)) found[i]++;
             num--;
         } while (pModule32Next( hSnapshot, &me ));
     }




More information about the wine-cvs mailing list