Changeset 2984 for trunk/src/kernel32/conin.cpp
- Timestamp:
- Mar 3, 2000, 12:16:00 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/conin.cpp
r2802 r2984 1 /* $Id: conin.cpp,v 1. 8 2000-02-16 14:25:31sandervl Exp $ */1 /* $Id: conin.cpp,v 1.9 2000-03-03 11:15:57 sandervl Exp $ */ 2 2 3 3 /* … … 34 34 #include <os2wrap.h> //Odin32 OS/2 api wrappers 35 35 36 #include <win32api.h> 36 37 #include <misc.h> 37 38 #include <string.h> … … 46 47 #define DBG_LOCALLOG DBG_conin 47 48 #include "dbglocal.h" 48 49 /***********************************50 * Open32 support for SetLastError *51 ***********************************/52 #include <os2sel.h>53 54 extern "C"55 {56 void _System _O32_SetLastError(DWORD dwError);57 }58 59 inline void SetLastError(DWORD a)60 {61 USHORT sel = GetFS();62 63 _O32_SetLastError(a);64 SetFS(sel);65 }66 49 67 50 … … 284 267 #endif 285 268 286 SetLastError(ERROR_ACCESS_DENIED );269 SetLastError(ERROR_ACCESS_DENIED_W); 287 270 return FALSE; 288 271 } … … 401 384 #endif 402 385 403 SetLastError(ERROR_INVALID_FUNCTION ); /* request not implemented */386 SetLastError(ERROR_INVALID_FUNCTION_W); /* request not implemented */ 404 387 return(FALSE); /* we assume this indicates API call failed */ 405 388 }
Note:
See TracChangeset
for help on using the changeset viewer.