Ignore:
Timestamp:
Nov 5, 2000, 2:40:47 PM (25 years ago)
Author:
sandervl
Message:

Use DosLoadModule instead of O32_LoadLibrary; changed log strings in exception dump (.dll/.exe)

File:
1 edited

Legend:

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

    r4474 r4555  
    1 /* $Id: oslibdos.cpp,v 1.49 2000-10-10 17:14:04 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.50 2000-11-05 13:40:45 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    20372037
    20382038
     2039HINSTANCE OSLibDosLoadModule(LPSTR szModName)
     2040{
     2041 APIRET  rc;
     2042 HMODULE hModule = NULLHANDLE;
     2043 char    name[ CCHMAXPATH ];
     2044
     2045  rc = DosLoadModule(name, CCHMAXPATH, szModName, &hModule);
     2046  if(rc) {
     2047      SetLastError(error2WinError(rc,ERROR_FILE_NOT_FOUND));
     2048      return 0;
     2049  }
     2050  SetLastError(ERROR_SUCCESS_W);
     2051  return hModule;
     2052}
     2053
    20392054ULONG OSLibDosQuerySysInfo(ULONG iStart, ULONG iLast, PVOID pBuf, ULONG cbBuf)
    20402055{
Note: See TracChangeset for help on using the changeset viewer.