From 90df19f05a33b9f2e2737e8aef912b561fae609b Mon Sep 17 00:00:00 2001 From: Greg Geldorp Date: Thu, 27 Jan 2011 11:39:45 +0100 Subject: [PATCH] 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 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dlls/shell32/tests/shelllink.c b/dlls/shell32/tests/shelllink.c index 29b0dda13a..bdcffdeae6 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 */