Changeset 3647 for trunk/src


Ignore:
Timestamp:
Jun 1, 2000, 4:01:44 PM (25 years ago)
Author:
sandervl
Message:

CloseHandle fix

Location:
trunk/src/kernel32
Files:
2 edited

Legend:

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

    r3642 r3647  
    1 /* $Id: oslibdos.cpp,v 1.29 2000-06-01 11:28:47 sandervl Exp $ */
     1/* $Id: oslibdos.cpp,v 1.30 2000-06-01 14:01:43 sandervl Exp $ */
    22/*
    33 * Wrappers for OS/2 Dos* API
     
    441441//******************************************************************************
    442442//******************************************************************************
    443 DWORD OSLibDosClose(DWORD hFile)
    444 {
    445   return DosClose(hFile);
     443BOOL OSLibDosClose(DWORD hFile)
     444{
     445 APIRET rc;
     446
     447  rc = DosClose(hFile);
     448  SetLastError(error2WinError(rc));
     449  return (rc == NO_ERROR);
    446450}
    447451//******************************************************************************
  • trunk/src/kernel32/oslibdos.h

    r3642 r3647  
    1 /* $Id: oslibdos.h,v 1.16 2000-06-01 11:28:48 sandervl Exp $ */
     1/* $Id: oslibdos.h,v 1.17 2000-06-01 14:01:44 sandervl Exp $ */
    22
    33/*
     
    6969
    7070DWORD OSLibDosOpen(char *lpszFileName, DWORD flags);
    71 DWORD OSLibDosClose(DWORD hFile);
     71BOOL OSLibDosClose(DWORD hFile);
    7272BOOL OSLibDosDelete(char *lpszFileName);
    7373
Note: See TracChangeset for help on using the changeset viewer.