Ignore:
Timestamp:
Mar 3, 2000, 12:16:00 PM (25 years ago)
Author:
sandervl
Message:

moved registry apis into kernel32 + cleanup

File:
1 edited

Legend:

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

    r2802 r2984  
    1 /* $Id: conout.cpp,v 1.6 2000-02-16 14:25:32 sandervl Exp $ */
     1/* $Id: conout.cpp,v 1.7 2000-03-03 11:15:57 sandervl Exp $ */
    22
    33/*
     
    6363
    6464#include <win32type.h>
     65#include <win32api.h>
    6566#include <misc.h>
    6667
     
    7677#define DBG_LOCALLOG    DBG_conout
    7778#include "dbglocal.h"
    78 
    79 
    80 /***********************************
    81  * Open32 support for SetLastError *
    82  ***********************************/
    83 #include <os2sel.h>
    84 
    85 extern "C"
    86 {
    87   void   _System _O32_SetLastError(DWORD  dwError);
    88   int    _System _O32_GetLastError(void);
    89 }
    90 
    91 inline void SetLastError(DWORD a)
    92 {
    93  USHORT sel = GetFS();
    94 
    95     _O32_SetLastError(a);
    96     SetFS(sel);
    97 }
    98 
    99 inline int GetLastError(void)
    100 {
    101   USHORT sel = GetFS();
    102   int    rc;
    103 
    104   rc = _O32_GetLastError();
    105   SetFS(sel);
    106   return rc;
    107 }
    108 
    10979
    11080/*****************************************************************************
     
    234204#endif
    235205
    236   SetLastError(ERROR_ACCESS_DENIED);
     206  SetLastError(ERROR_ACCESS_DENIED_W);
    237207  return FALSE;
    238208}
Note: See TracChangeset for help on using the changeset viewer.