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/conin.cpp

    r2802 r2984  
    1 /* $Id: conin.cpp,v 1.8 2000-02-16 14:25:31 sandervl Exp $ */
     1/* $Id: conin.cpp,v 1.9 2000-03-03 11:15:57 sandervl Exp $ */
    22
    33/*
     
    3434#include <os2wrap.h>    //Odin32 OS/2 api wrappers
    3535
     36#include <win32api.h>
    3637#include <misc.h>
    3738#include <string.h>
     
    4647#define DBG_LOCALLOG    DBG_conin
    4748#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 }
    6649
    6750
     
    284267#endif
    285268
    286   SetLastError(ERROR_ACCESS_DENIED);
     269  SetLastError(ERROR_ACCESS_DENIED_W);
    287270  return FALSE;
    288271}
     
    401384#endif
    402385
    403   SetLastError(ERROR_INVALID_FUNCTION);           /* request not implemented */
     386  SetLastError(ERROR_INVALID_FUNCTION_W);           /* request not implemented */
    404387  return(FALSE);                 /* we assume this indicates API call failed */
    405388}
Note: See TracChangeset for help on using the changeset viewer.