Ignore:
Timestamp:
Feb 26, 2000, 6:48:23 PM (26 years ago)
Author:
bird
Message:

Win32k library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/lib/libTerm.c

    r2830 r2904  
    1 /* $Id: libTerm.c,v 1.1 2000-02-19 16:52:38 bird Exp $
     1/* $Id: libTerm.c,v 1.2 2000-02-26 17:48:23 bird Exp $
    22 *
    33 * Terminates the Win32k library functions.
     
    1313*   Header Files                                                               *
    1414*******************************************************************************/
    15 #define INCL_DOSERROR
     15#define INCL_DOSERRORS
    1616#define INCL_DOSFILEMGR
    1717#define INCL_DOSDEVICES
     
    2727*   Global Variables                                                           *
    2828*******************************************************************************/
    29 extern static BOOL fInited;
     29extern BOOL        fInited;
    3030extern HFILE       hWin32k;
    3131
     
    3939APIRET APIENTRY  libWin32kTerm(void)
    4040{
     41    APIRET rc = NO_ERROR;
     42
    4143    if (fInited)
    42         DosClose(hWin32k);
    43     hWin32k = NULLHANDLE;
    44     fInited = FALSE;
    45     return NO_ERROR;
     44        rc = DosClose(hWin32k);
     45
     46    if (rc == NO_ERROR)
     47    {
     48        hWin32k = NULLHANDLE;
     49        fInited = FALSE;
     50    }
     51    return rc;
    4652}
    4753
Note: See TracChangeset for help on using the changeset viewer.