Changeset 5303 for trunk/src


Ignore:
Timestamp:
Mar 12, 2001, 3:16:33 PM (24 years ago)
Author:
sandervl
Message:

SearchPath & pe loader fixes

Location:
trunk/src/kernel32
Files:
3 edited

Legend:

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

    r4847 r5303  
    1 /* $Id: directory.cpp,v 1.34 2000-12-28 18:17:56 sandervl Exp $ */
     1/* $Id: directory.cpp,v 1.35 2001-03-12 14:16:33 sandervl Exp $ */
    22
    33/*
     
    691691    lstrcpynA( buffer, (LPSTR)full_name, buflen);
    692692    SetLastError(0);
    693     return strlen(buffer);
     693    return strlen(full_name);
    694694}
    695695
     
    714714    lstrcpynAtoW( buffer, full_name, buflen);
    715715    SetLastError(0);
    716     return strlen(full_name);
    717 }
     716    return ret;
     717}
  • trunk/src/kernel32/hmstd.cpp

    r5019 r5303  
    1 /* $Id: hmstd.cpp,v 1.1 2001-01-23 18:31:26 sandervl Exp $ */
     1/* $Id: hmstd.cpp,v 1.2 2001-03-12 14:16:33 sandervl Exp $ */
    22
    33/*
     
    7070{
    7171  BOOL         bRC;
     72  DWORD        bytesread;
    7273
    7374  dprintf2(("KERNEL32: HMDeviceStandardClass::ReadFile %s(%08x,%08x,%08x,%08x,%08x) - NOT IMPLEMENTED\n",
     
    8081
    8182
    82   return FALSE;
     83  if(lpNumberOfBytesRead == NULL) {
     84     lpNumberOfBytesRead = &bytesread;
     85  }
     86  if(pHMHandleData->dwUserData != STD_INPUT_HANDLE) {
     87     return FALSE;
     88  }
     89  return O32_ReadFile(pHMHandleData->hHMHandle, (LPVOID)lpBuffer, nNumberOfBytesToRead,
     90                      lpNumberOfBytesRead, lpOverlapped);
    8391}
    8492
  • trunk/src/kernel32/winimagepeldr.cpp

    r5266 r5303  
    1 /* $Id: winimagepeldr.cpp,v 1.68 2001-02-25 16:05:39 sandervl Exp $ */
     1/* $Id: winimagepeldr.cpp,v 1.69 2001-03-12 14:16:33 sandervl Exp $ */
    22
    33/*
     
    16751675    if(WinDll == NULL)
    16761676    {  //not found, so load it
    1677         WinDll = loadDll(pszCurModule);
     1677        if (WinExe != NULL && WinExe->matchModName(pszCurModule)) {
     1678             WinImage = (Win32ImageBase *)WinExe;
     1679        }
     1680        else {
     1681             WinDll = loadDll(pszCurModule);
     1682        }
    16781683    }
    16791684    else {
     
    16811686        dprintf((LOG, "Already found ", pszCurModule));
    16821687    }
    1683     if(WinDll == NULL) {
    1684         //TODO: might not be the right order (check executable first and only then dll??)
    1685         if (WinExe != NULL && WinExe->matchModName(pszCurModule)) {
    1686              WinImage = (Win32ImageBase *)WinExe;
    1687         }
    1688         else return FALSE;
    1689     }
    1690     else {
     1688    if(WinDll != NULL) {
    16911689        //add the dll we just loaded to dependency list for this image
    16921690        addDependency(WinDll);
Note: See TracChangeset for help on using the changeset viewer.