Changeset 2984 for trunk/src/kernel32/conout.cpp
- Timestamp:
- Mar 3, 2000, 12:16:00 PM (25 years ago)
- 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:32sandervl Exp $ */1 /* $Id: conout.cpp,v 1.7 2000-03-03 11:15:57 sandervl Exp $ */ 2 2 3 3 /* … … 63 63 64 64 #include <win32type.h> 65 #include <win32api.h> 65 66 #include <misc.h> 66 67 … … 76 77 #define DBG_LOCALLOG DBG_conout 77 78 #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 109 79 110 80 /***************************************************************************** … … 234 204 #endif 235 205 236 SetLastError(ERROR_ACCESS_DENIED );206 SetLastError(ERROR_ACCESS_DENIED_W); 237 207 return FALSE; 238 208 }
Note:
See TracChangeset
for help on using the changeset viewer.