[1/2] shell32/tests: Fix path comparison (try 2)
André Hentschel
nerv at dawncrow.de
Tue Sep 13 10:50:37 CDT 2011
---
dlls/shell32/tests/shlexec.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/dlls/shell32/tests/shlexec.c b/dlls/shell32/tests/shlexec.c
index bae0c21..1dd416d 100644
--- a/dlls/shell32/tests/shlexec.c
+++ b/dlls/shell32/tests/shlexec.c
@@ -2220,7 +2220,7 @@ static void test_directory(void)
/* copy this executable to a new folder and cd to it */
sprintf(newdir, "%s\\newfolder", tmpdir);
rc = CreateDirectoryA( newdir, NULL );
- ok( rc, "failed to create %s err %u\n", path, GetLastError() );
+ ok( rc, "failed to create %s err %u\n", newdir, GetLastError() );
sprintf(path, "%s\\%s", newdir, path_find_file_name(argv0));
CopyFileA(argv0, path, FALSE);
SetCurrentDirectory(tmpdir),
@@ -2236,6 +2236,9 @@ static void test_directory(void)
ok(rc > 32, "%s returned %d\n", shell_call, rc);
okChildInt("argcA", 4);
okChildString("argvA3", "Exec");
+ rc = GetModuleFileName(NULL, path, sizeof(path));
+ ok(rc && rc < sizeof(path), "GetModuleFileName failed\n");
+ sprintf(path, "%s\\%s", newdir, path_find_file_name(path));
todo_wine okChildPath("longPath", path);
DeleteFile(path);
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list