Changeset 2984 for trunk/src/kernel32/conbuffer.cpp
- Timestamp:
- Mar 3, 2000, 12:16:00 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kernel32/conbuffer.cpp
r2802 r2984 1 /* $Id: conbuffer.cpp,v 1. 9 2000-02-16 14:25:30sandervl Exp $ */1 /* $Id: conbuffer.cpp,v 1.10 2000-03-03 11:15:56 sandervl Exp $ */ 2 2 3 3 /* … … 64 64 #include <os2wrap.h> //Odin32 OS/2 api wrappers 65 65 66 #include <win32api.h> 66 67 #include <misc.h> 67 68 #include <string.h> … … 77 78 #define DBG_LOCALLOG DBG_conbuffer 78 79 #include "dbglocal.h" 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 }89 90 inline void SetLastError(DWORD a)91 {92 USHORT sel = GetFS();93 94 _O32_SetLastError(a);95 SetFS(sel);96 }97 80 98 81 … … 144 127 if (pHMHandleData->lpHandlerData == NULL) /* check allocation */ 145 128 { 146 SetLastError(ERROR_NOT_ENOUGH_MEMORY ); /* set error information */129 SetLastError(ERROR_NOT_ENOUGH_MEMORY_W); /* set error information */ 147 130 return (INVALID_HANDLE_VALUE); /* raise error condition */ 148 131 } … … 233 216 #endif 234 217 235 SetLastError(ERROR_ACCESS_DENIED );218 SetLastError(ERROR_ACCESS_DENIED_W); 236 219 return FALSE; 237 220 } … … 273 256 /* check if we're called with non-existing line buffer */ 274 257 if (pConsoleBuffer->ppszLine == NULL) { 275 SetLastError(ERROR_ SYS_INTERNAL);258 SetLastError(ERROR_OUTOFMEMORY_W); 276 259 return FALSE; 277 260 } … … 770 753 #endif 771 754 772 SetLastError(ERROR_INVALID_FUNCTION ); /* request not implemented */755 SetLastError(ERROR_INVALID_FUNCTION_W); /* request not implemented */ 773 756 return(FALSE); /* we assume this indicates API call failed */ 774 757 } … … 816 799 *lpNumberOfAttrsWritten = 0; /* complete error handling */ 817 800 818 SetLastError(ERROR_INVALID_PARAMETER );801 SetLastError(ERROR_INVALID_PARAMETER_W); 819 802 return (FALSE); 820 803 } … … 827 810 *lpNumberOfAttrsWritten = 0; /* complete error handling */ 828 811 829 SetLastError(ERROR_INVALID_PARAMETER );812 SetLastError(ERROR_INVALID_PARAMETER_W); 830 813 return (FALSE); 831 814 } … … 916 899 *lpNumberOfCharsWritten = 0; /* complete error handling */ 917 900 918 SetLastError(ERROR_INVALID_PARAMETER );901 SetLastError(ERROR_INVALID_PARAMETER_W); 919 902 return (FALSE); 920 903 } … … 928 911 *lpNumberOfCharsWritten = 0; /* complete error handling */ 929 912 930 SetLastError(ERROR_INVALID_PARAMETER );913 SetLastError(ERROR_INVALID_PARAMETER_W); 931 914 return (FALSE); 932 915 } … … 1016 999 *lpNumberOfCharsWritten = 0; /* complete error handling */ 1017 1000 1018 SetLastError(ERROR_INVALID_PARAMETER );1001 SetLastError(ERROR_INVALID_PARAMETER_W); 1019 1002 return (FALSE); 1020 1003 } … … 1028 1011 *lpNumberOfCharsWritten = 0; /* complete error handling */ 1029 1012 1030 SetLastError(ERROR_INVALID_PARAMETER );1013 SetLastError(ERROR_INVALID_PARAMETER_W); 1031 1014 return (FALSE); 1032 1015 } … … 1294 1277 (coordDestBufferSize.Y < coordDestBufferCoord.Y) ) 1295 1278 { 1296 SetLastError(ERROR_INVALID_PARAMETER ); /* set detailed error info */1279 SetLastError(ERROR_INVALID_PARAMETER_W); /* set detailed error info */ 1297 1280 return (FALSE); /* API failed */ 1298 1281 } … … 1393 1376 (coordDestBufferSize.Y < coordDestBufferCoord.Y) ) 1394 1377 { 1395 SetLastError(ERROR_INVALID_PARAMETER ); /* set detailed error info */1378 SetLastError(ERROR_INVALID_PARAMETER_W); /* set detailed error info */ 1396 1379 return (FALSE); /* API failed */ 1397 1380 } … … 1482 1465 *lpcNumberRead = 0; /* complete error handling */ 1483 1466 1484 SetLastError(ERROR_INVALID_PARAMETER );1467 SetLastError(ERROR_INVALID_PARAMETER_W); 1485 1468 return (FALSE); 1486 1469 } … … 1493 1476 *lpcNumberRead = 0; /* complete error handling */ 1494 1477 1495 SetLastError(ERROR_INVALID_PARAMETER );1478 SetLastError(ERROR_INVALID_PARAMETER_W); 1496 1479 return (FALSE); 1497 1480 } … … 1574 1557 *lpcNumberRead = 0; /* complete error handling */ 1575 1558 1576 SetLastError(ERROR_INVALID_PARAMETER );1559 SetLastError(ERROR_INVALID_PARAMETER_W); 1577 1560 return (FALSE); 1578 1561 } … … 1585 1568 *lpcNumberRead = 0; /* complete error handling */ 1586 1569 1587 SetLastError(ERROR_INVALID_PARAMETER );1570 SetLastError(ERROR_INVALID_PARAMETER_W); 1588 1571 return (FALSE); 1589 1572 } … … 1666 1649 *lpcNumberRead = 0; /* complete error handling */ 1667 1650 1668 SetLastError(ERROR_INVALID_PARAMETER );1651 SetLastError(ERROR_INVALID_PARAMETER_W); 1669 1652 return (FALSE); 1670 1653 } … … 1677 1660 *lpcNumberRead = 0; /* complete error handling */ 1678 1661 1679 SetLastError(ERROR_INVALID_PARAMETER );1662 SetLastError(ERROR_INVALID_PARAMETER_W); 1680 1663 return (FALSE); 1681 1664 } … … 2100 2083 (pCCI->dwSize > 100) ) 2101 2084 { 2102 SetLastError(ERROR_INVALID_PARAMETER ); /* set extended error info */2085 SetLastError(ERROR_INVALID_PARAMETER_W); /* set extended error info */ 2103 2086 return (FALSE); /* API failed */ 2104 2087 } … … 2392 2375 ) 2393 2376 { 2394 SetLastError(ERROR_INVALID_PARAMETER ); /* set error information */2377 SetLastError(ERROR_INVALID_PARAMETER_W); /* set error information */ 2395 2378 return (FALSE); /* error */ 2396 2379 } … … 2403 2386 ) 2404 2387 { 2405 SetLastError(ERROR_INVALID_PARAMETER ); /* set error information */2388 SetLastError(ERROR_INVALID_PARAMETER_W); /* set error information */ 2406 2389 return (FALSE); /* error */ 2407 2390 } … … 2438 2421 ) 2439 2422 { 2440 SetLastError(ERROR_INVALID_PARAMETER ); /* set error information */2423 SetLastError(ERROR_INVALID_PARAMETER_W); /* set error information */ 2441 2424 return (FALSE); /* error */ 2442 2425 } … … 2615 2598 (coordSrcBufferSize.Y < coordSrcBufferCoord.Y) ) 2616 2599 { 2617 SetLastError(ERROR_INVALID_PARAMETER ); /* set detailed error info */2600 SetLastError(ERROR_INVALID_PARAMETER_W); /* set detailed error info */ 2618 2601 return (FALSE); /* API failed */ 2619 2602 } … … 2721 2704 (coordSrcBufferSize.Y < coordSrcBufferCoord.Y) ) 2722 2705 { 2723 SetLastError(ERROR_INVALID_PARAMETER ); /* set detailed error info */2706 SetLastError(ERROR_INVALID_PARAMETER_W); /* set detailed error info */ 2724 2707 return (FALSE); /* API failed */ 2725 2708 } … … 2817 2800 *lpcWritten = 0; /* complete error handling */ 2818 2801 2819 SetLastError(ERROR_INVALID_PARAMETER );2802 SetLastError(ERROR_INVALID_PARAMETER_W); 2820 2803 return (FALSE); 2821 2804 } … … 2828 2811 *lpcWritten = 0; /* complete error handling */ 2829 2812 2830 SetLastError(ERROR_INVALID_PARAMETER );2813 SetLastError(ERROR_INVALID_PARAMETER_W); 2831 2814 return (FALSE); 2832 2815 } … … 2917 2900 *lpcWritten = 0; /* complete error handling */ 2918 2901 2919 SetLastError(ERROR_INVALID_PARAMETER );2902 SetLastError(ERROR_INVALID_PARAMETER_W); 2920 2903 return (FALSE); 2921 2904 } … … 2928 2911 *lpcWritten = 0; /* complete error handling */ 2929 2912 2930 SetLastError(ERROR_INVALID_PARAMETER );2913 SetLastError(ERROR_INVALID_PARAMETER_W); 2931 2914 return (FALSE); 2932 2915 } … … 3017 3000 *lpcWritten = 0; /* complete error handling */ 3018 3001 3019 SetLastError(ERROR_INVALID_PARAMETER );3002 SetLastError(ERROR_INVALID_PARAMETER_W); 3020 3003 return (FALSE); 3021 3004 } … … 3028 3011 *lpcWritten = 0; /* complete error handling */ 3029 3012 3030 SetLastError(ERROR_INVALID_PARAMETER );3013 SetLastError(ERROR_INVALID_PARAMETER_W); 3031 3014 return (FALSE); 3032 3015 }
Note:
See TracChangeset
for help on using the changeset viewer.