Ignore:
Timestamp:
Oct 10, 2000, 7:14:09 PM (25 years ago)
Author:
sandervl
Message:

pe loader fixes, add system32\drivers dir during installation, add build date + time during kernel32 load

File:
1 edited

Legend:

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

    r4473 r4474  
    1 /* $Id: oslibdos.cpp,v 1.48 2000-10-09 22:51:18 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.49 2000-10-10 17:14:04 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    17441744        DosFindClose(hDir);
    17451745        SetLastError(error2WinError(rc));
    1746   return INVALID_HANDLE_VALUE_W;
     1746        return INVALID_HANDLE_VALUE_W;
    17471747  }
    17481748  translateFindResults(&result,lpFindFileData);
     1749  SetLastError(ERROR_SUCCESS_W);
    17491750  return hDir;
    17501751}
     
    17831784  *count = searchCount;
    17841785
     1786  SetLastError(ERROR_SUCCESS_W);
    17851787  return hDir;
    17861788}
     
    18011803
    18021804  translateFindResults(&result,lpFindFileData);
    1803 
     1805  SetLastError(ERROR_SUCCESS_W);
    18041806  return TRUE;
    18051807}
     
    18311833  *count = searchCount;
    18321834
     1835  SetLastError(ERROR_SUCCESS_W);
    18331836  return TRUE;
    18341837}
     
    18411844  {
    18421845    SetLastError(error2WinError(rc));
    1843 
    18441846    return FALSE;
    18451847  }
    18461848
     1849  SetLastError(ERROR_SUCCESS_W);
    18471850  return TRUE;
    18481851}
     
    18591862
    18601863   if(lpFileSystemNameBuffer == NULL) {
    1861   DebugInt3();
    1862   return ERROR_INVALID_PARAMETER_W;
     1864        DebugInt3();
     1865        return ERROR_INVALID_PARAMETER_W;
    18631866   }
    18641867   drv[0] = (char)('A' + drive - 1);
     
    18701873   switch(rc) {
    18711874   case ERROR_INVALID_DRIVE:
    1872   return ERROR_INVALID_DRIVE_W;
     1875        return ERROR_INVALID_DRIVE_W;
    18731876   case ERROR_NO_VOLUME_LABEL:
    1874   return ERROR_NO_VOLUME_LABEL_W;
     1877        return ERROR_NO_VOLUME_LABEL_W;
    18751878   case NO_ERROR:
    1876   break;
     1879        break;
    18771880   default:
    1878   return ERROR_NOT_ENOUGH_MEMORY; //whatever
     1881        return ERROR_NOT_ENOUGH_MEMORY; //whatever
    18791882   }
    18801883
     
    18891892  /*
    18901893   if(strlen(fsname) < nFileSystemNameSize) {
    1891   strcpy(lpFileSystemNameBuffer, fsname);
     1894        strcpy(lpFileSystemNameBuffer, fsname);
    18921895   }
    18931896   else return ERROR_BUFFER_OVERFLOW_W;
     
    20002003    return -1; // INVALID_HANDLE_VALUE
    20012004  }
     2005  SetLastError(ERROR_SUCCESS_W);
    20022006  return NO_ERROR;
    20032007}
     
    20752079   }
    20762080   else len += 3;   // + 3 since DosQueryCurDir doesn't include drive
     2081
     2082   SetLastError(ERROR_SUCCESS_W);
    20772083   return len;
    20782084}
Note: See TracChangeset for help on using the changeset viewer.