Changeset 885 for trunk/dll/init.c


Ignore:
Timestamp:
Dec 16, 2007, 7:52:39 PM (13 years ago)
Author:
Gregg Young
Message:

Replace explore.exe with WPURLDEFAULTSETTINGS for runhttp fall back Ticket 179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/init.c

    r878 r885  
    11861186  size = sizeof(ftprun);
    11871187  PrfQueryProfileData(fmprof, appname, "FTPRun", ftprun, &size);
    1188   if (!*ftprun && !size)
     1188  if (!*ftprun || !size)
    11891189    strcpy(ftprun, "ftppm.exe");
    11901190  size = sizeof(httprun);
    11911191  PrfQueryProfileData(fmprof, appname, "HTTPRun", httprun, &size);
    1192   if (!*httprun && !size)
    1193     strcpy(httprun, "explore.exe -q");
     1192  if (!*httprun || !size){
     1193    size = sizeof(httprun);
     1194    PrfQueryProfileData(HINI_USERPROFILE, "WPURLDEFAULTSETTINGS",
     1195                        "DefaultBrowserExe", httprun, &size);
     1196    PrfQueryProfileData(HINI_PROFILE, "WPURLDEFAULTSETTINGS",
     1197                        "DefaultWorkingDir", httprund, &size);
     1198  }
    11941199  size = sizeof(lasttoolbox);
    11951200  PrfQueryProfileData(fmprof, FM3Str, "LastToolBox", lasttoolbox,
Note: See TracChangeset for help on using the changeset viewer.