Changeset 6185 for trunk/src


Ignore:
Timestamp:
Jul 6, 2001, 3:47:40 PM (24 years ago)
Author:
sandervl
Message:

report file not found errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/peldr/pe.cpp

    r5956 r6185  
    1 /* $Id: pe.cpp,v 1.28 2001-06-10 22:00:04 sandervl Exp $ */
     1/* $Id: pe.cpp,v 1.29 2001-07-06 13:47:40 sandervl Exp $ */
    22
    33/*
     
    3737char szErrorTitle[]     = "Odin";
    3838char szLoadErrorMsg[]   = "Can't load executable";
     39char szFileNotFound[]   = "File not found.";
    3940char szFileErrorMsg[]   = "File IO error";
    4041char szPEErrorMsg[]     = "Not a valid win32 exe. (perhaps 16 bits windows)";
     
    131132                                }
    132133                        }
     134                        if(nrTries && *p == 0) {
     135                            pszErrorMsg = szFileNotFound;
     136                            goto failerror;
     137                        }
    133138                }
    134139                *p = 0;
     
    164169        }
    165170        else {//should never happen!
    166 filenotfound:
    167171                pszErrorMsg = szDosInfoBlocks;
    168172                goto failerror;
     
    173177            ULONG idSession;
    174178            PID   pid;
     179
    175180            sdata.Length    = sizeof(sdata);
    176181            sdata.PgmName   = "w16odin.exe";
     
    179184            strcat(fullpath, win32cmdline);
    180185            sdata.PgmInputs = fullpath;
     186            sdata.FgBg      = SSF_FGBG_FORE;
    181187            sdata.SessionType = SSF_TYPE_WINDOWEDVDM;
    182188            rc = DosStartSession(&sdata, &idSession, &pid);
Note: See TracChangeset for help on using the changeset viewer.