[Bug 8020] cmd can't find .bat if full path is given / not found file causes a cmd spawning recursion

Wine Bugs wine-bugs at winehq.org
Wed Apr 11 15:31:48 CDT 2007


us at edmeades.me.uk changed:

           What    |Removed                     |Added
             Status|NEW                         |ASSIGNED

------- Additional Comments From us at edmeades.me.uk  2007-11-04 15:31 -------
I'll do patches as part of my next set, but change wcmdmain.c if in lines 837 
to read (swaps 2 lines and add ptr chk)
    /* 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;
    strcpy(stemofsearch, lastSlash+1);

basically, setting *ptr to 0x00 then doing a strchr on it isnt likely to 
work... oops!

Sorry about the regression, thanks for the bug report

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

More information about the wine-bugs mailing list