Changeset 1631 for trunk/dll/pathutil.c


Ignore:
Timestamp:
Sep 18, 2011, 1:36:36 AM (14 years ago)
Author:
Gregg Young
Message:

Fix quoting of argument file names when needed (Ticket 475)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/pathutil.c

    r1591 r1631  
    200200           remove_first_occurence_of_character("\"", szCmdLine);
    201201      if ((szArgs[0] == '\"' && szArgs[1] == ' ') ||
    202            //!strstr(pszCmdLine_, "\\:")||
    203            strchr(szArgs, '\"') == strrchr(szArgs, '\"'))
     202           (!strstr(pszCmdLine_, "\\:") &&  strchr(szArgs, '\"') &&
     203           strchr(szArgs, '\"') == strrchr(szArgs, '\"')))
    204204        remove_first_occurence_of_character("\"", szArgs);
    205205      if (strchr(szArgs, '\"') != strrchr(szArgs, '\"'))
Note: See TracChangeset for help on using the changeset viewer.