Changeset 769 for trunk/src


Ignore:
Timestamp:
Sep 1, 1999, 1:48:36 AM (26 years ago)
Author:
phaller
Message:

fixed return codes for HMCreateFileMapping, HMOpenFileMapping

File:
1 edited

Legend:

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

    r768 r769  
    1 /* $Id: HandleManager.cpp,v 1.18 1999-08-31 23:14:02 phaller Exp $ */
     1/* $Id: HandleManager.cpp,v 1.19 1999-08-31 23:48:36 phaller Exp $ */
    22
    33/*
     
    23132313    TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;
    23142314    SetLastError(rc);          /* Hehe, OS/2 and NT are pretty compatible :) */
    2315     return (INVALID_HANDLE_VALUE);                           /* signal error */
     2315    return (NULL);                                           /* signal error */
    23162316  }
    23172317
     
    23252325 * Parameters:
    23262326 * Variables :
    2327  * Result    :
     2327 * Result    : HANDLE if succeeded,
     2328 *             NULL   if failed.
    23282329 * Remark    :
    23292330 * Status    :
     
    23492350  {
    23502351    SetLastError(ERROR_NOT_ENOUGH_MEMORY);      /* use this as error message */
    2351     return (INVALID_HANDLE_VALUE);                           /* signal error */
     2352    return (NULL);                                           /* signal error */
    23522353  }
    23532354
     
    23712372                                                  /* call the device handler */
    23722373  rc = pDeviceHandler->OpenFileMapping(&TabWin32Handles[iIndexNew].hmHandleData,
    2373                                        fdwAccess,
     2374                                       fdwAccess,
    23742375                                       fInherit,
    23752376                                       lpName);
     
    23782379    TabWin32Handles[iIndexNew].hmHandleData.hHMHandle = INVALID_HANDLE_VALUE;
    23792380    SetLastError(rc);          /* Hehe, OS/2 and NT are pretty compatible :) */
    2380     return (INVALID_HANDLE_VALUE);                           /* signal error */
     2381    return (NULL);                                           /* signal error */
    23812382  }
    23822383
Note: See TracChangeset for help on using the changeset viewer.