Greg Geldorp : shell32/tests: Use long file name.
Alexandre Julliard
julliard at winehq.org
Thu Jan 27 12:43:21 CST 2011
Module: wine
Branch: master
Commit: 90df19f05a33b9f2e2737e8aef912b561fae609b
URL: http://source.winehq.org/git/wine.git/?a=commit;h=90df19f05a33b9f2e2737e8aef912b561fae609b
Author: Greg Geldorp <ggeldorp at vmware.com>
Date: Thu Jan 27 11:39:45 2011 +0100
shell32/tests: Use long file name.
Test is about the extension, so let's un-complicate it by using long path
names.
---
dlls/shell32/tests/shelllink.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c
index 29b0dda..bdcffde 100644
--- a/dlls/shell32/tests/shelllink.c
+++ b/dlls/shell32/tests/shelllink.c
@@ -682,13 +682,13 @@ static void test_load_save(void)
check_lnk(lnkfile, &desc, 0x0);
/* Test omitting .exe from an absolute path */
- p=strrchr(mypath, '.');
+ p=strrchr(realpath, '.');
if (p)
*p='\0';
desc.description="absolute path without .exe";
desc.workdir=mydir;
- desc.path=mypath;
+ desc.path=realpath;
desc.pidl=NULL;
desc.arguments="/option1 /option2 \"Some string\"";
desc.showcmd=SW_SHOWNORMAL;
@@ -696,7 +696,7 @@ static void test_load_save(void)
desc.icon_id=0;
desc.hotkey=0x1234;
create_lnk(lnkfile, &desc, 0);
- desc.path = realpath;
+ strcat(realpath, ".exe");
check_lnk(lnkfile, &desc, 0x4);
/* Overwrite the existing lnk file and test link to a command on the path */
More information about the wine-cvs
mailing list