Jason Edmeades : cmd.exe: Fix regression when launching a fully qualified program.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Apr 12 10:00:07 CDT 2007


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

Author: Jason Edmeades <us at edmeades.me.uk>
Date:   Wed Apr 11 22:25:54 2007 +0100

cmd.exe: Fix regression when launching a fully qualified program.

---

 programs/cmd/wcmdmain.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/cmd/wcmdmain.c b/programs/cmd/wcmdmain.c
index 44195a5..5ef6ef6 100644
--- a/programs/cmd/wcmdmain.c
+++ b/programs/cmd/wcmdmain.c
@@ -837,8 +837,8 @@ void WCMD_run_program (char *command, int called) {
     /* Convert eg. ..\fred to include a directory by removing file part */
     GetFullPathName(param1, sizeof(pathtosearch), pathtosearch, NULL);
     lastSlash = strrchr(pathtosearch, '\\');
+    if (lastSlash && strchr(lastSlash, '.') != NULL) extensionsupplied = TRUE;
     if (lastSlash) *lastSlash = 0x00;
-    if (strchr(lastSlash, '.') != NULL) extensionsupplied = TRUE;
     strcpy(stemofsearch, lastSlash+1);
   }
 




More information about the wine-cvs mailing list