Ignore:
Timestamp:
Dec 18, 2011, 10:28:22 PM (14 years ago)
Author:
dmik
Message:

Merge branch gcc-kmk to trunk.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        1 bin
        2 Makefile.inc
         1env.cmd
         2LocalConfig.kmk
    • Property svn:mergeinfo set to
      /branches/gcc-kmkmergedeligible
  • trunk/src/peldr/pe.cpp

    r21580 r21916  
    77 *
    88 * Command line options:
    9  *   /OPT:[x1=y,x2=z,..]         
     9 *   /OPT:[x1=y,x2=z,..]
    1010 *   x = CURDIR    -> set current directory to y
    1111 *   (not other options available at this time)
     
    3131#include <misc.h>
    3232#include <wprocess.h>
    33 #include <win\peexe.h>
     33#include <win/peexe.h>
    3434#include <odinpe.h>
    3535#include "pe.h"
     
    100100 int    nrTries = 1;
    101101
    102   if(DosGetInfoBlocks(&ptib, &ppib) == 0) 
     102  if(DosGetInfoBlocks(&ptib, &ppib) == 0)
    103103  {
    104104      char *pszTemp;
     
    137137                        else    _interrupt(3);  //should not happen!
    138138#endif
    139                 }               
     139                }
    140140                while(*cmdline == ' ')  cmdline++; //skip leading space
    141141                if(*cmdline == '"') {
     
    196196                strcat(exeShortName, ext);
    197197
    198                 if ( strlen(fullpath) == 0 ) 
     198                if ( strlen(fullpath) == 0 )
    199199                {
    200200                    char newExeName[CCHMAXPATH];
     
    205205                                     , newExeName              /* Result of the search     */
    206206                                     , sizeof(newExeName)      /* Length of search buffer  */
    207                                      ) == NO_ERROR) 
     207                                     ) == NO_ERROR)
    208208                        {
    209209                            strcpy(exeName, newExeName);
     
    212212
    213213                FILESTATUS3 fstat3;
    214                 if(DosQueryPathInfo(exeName, FIL_STANDARD, (PVOID)&fstat3, sizeof(fstat3))) 
     214                if(DosQueryPathInfo(exeName, FIL_STANDARD, (PVOID)&fstat3, sizeof(fstat3)))
    215215                {
    216216                        nrTries++;
     
    236236
    237237            sdata.Length    = sizeof(sdata);
    238             sdata.PgmName   = "w16odin.exe";
     238            sdata.PgmName   = (PSZ)"w16odin.exe";
    239239            strcpy(fullpath, exeName);
    240240            strcat(fullpath, " ");
     
    257257        //switch process type to PM so the command line app can create PM
    258258        //windows
    259         ppib->pib_ultype = 3; 
     259        ppib->pib_ultype = 3;
    260260  }
    261261#endif
     
    272272
    273273  hmq = MyWinCreateMsgQueue(hab, 0);
    274  
     274
    275275  if(argc < 2) {
    276276        MyWinMessageBox(HWND_DESKTOP, NULL, INFO_BANNER, szErrorTitle, 0, MB_OK | MB_ERROR | MB_MOVEABLE);
     
    292292  fVioConsole = FALSE;
    293293#endif
    294   rc = CreateWin32Exe(exeName, win32cmdline, peoptions, reservedMemory, 0, 
     294  rc = CreateWin32Exe(exeName, win32cmdline, peoptions, reservedMemory, 0,
    295295                      fConsoleApp, fVioConsole, errorMod, sizeof(errorMod));
    296296  if(rc != LDRERROR_SUCCESS)
     
    305305            sprintf(pszErrorMsg, szCPUErrorMsg, exeName);
    306306            break;
    307         case LDRERROR_FILE_SYSTEM:           
     307        case LDRERROR_FILE_SYSTEM:
    308308            sprintf(szErrorMsg, szExeErrorMsg, exeName);
    309309            break;
Note: See TracChangeset for help on using the changeset viewer.