Ignore:
Timestamp:
Jun 18, 2009, 11:53:26 AM (16 years ago)
Author:
ydario
Message:

Kernel32 updates.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/oslibdos.cpp

    r10132 r21302  
    265265    case ERROR_WRONG_DISK: //34
    266266        return ERROR_WRONG_DISK_W;
     267
     268    case ERROR_BAD_NETPATH: //53
     269        return ERROR_BAD_NETPATH_W;
    267270
    268271    case ERROR_SHARING_BUFFER_EXCEEDED: //36
     
    10451048      // @@@AH 2001-06-02 Win2k SP2 returns error 2 in this case
    10461049      int winError = error2WinError(rc);
    1047       if (winError == ERROR_OPEN_FAILED_W || winError == ERROR_PATH_NOT_FOUND_W)
     1050      if (winError == ERROR_OPEN_FAILED_W)
    10481051      {
    10491052          //Windows returns ERROR_FILE_EXISTS if create new & file exists
     
    23832386{
    23842387   FILESTATUS3 statusBuf;
    2385    char        lOemFileName[CCHMAXPATH];
     2388   char        *lOemFileName;
    23862389   char       *lpszBackslash, *lpszColon;
    23872390   APIRET      rc;
    23882391
    2389 //testestest
    2390    if(strlen(lpFileName) > CCHMAXPATH) DebugInt3();
    2391 //testestset
     2392   lOemFileName = (char *)malloc(strlen(lpFileName)+64);
     2393   lOemFileName[0] = 0;
    23922394
    23932395   //Convert file name from Windows to OS/2 codepage
     
    23992401       {
    24002402           lpszColon = CharPrevA(lOemFileName, lpszBackslash);
    2401            if(lpszColon && *lpszColon != ':')
     2403           if(strlen(lOemFileName) > 1 && lpszColon && *lpszColon != ':')
    24022404           {//only rootdir is allowed to have terminating backslash
    24032405               *lpszBackslash = 0;
     
    24202422           rc = DosQueryPathInfo(lOemFileName, FIL_STANDARD, &statusBuf, sizeof(statusBuf));
    24212423   }
     2424   free(lOemFileName);
    24222425
    24232426   if(rc == NO_ERROR)
Note: See TracChangeset for help on using the changeset viewer.