Changeset 95803 in vbox for trunk/src/VBox
- Timestamp:
- Jul 25, 2022 12:28:16 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/errvars-win.cpp
r93115 r95803 30 30 *********************************************************************************************************************************/ 31 31 #include <iprt/win/winsock2.h> 32 #include <errno.h> 32 #ifndef IPRT_NO_CRT 33 # include <errno.h> 34 #endif 33 35 34 36 #include <iprt/errcore.h> … … 46 48 pVars->ai32Vars[1] = GetLastError(); 47 49 pVars->ai32Vars[2] = g_pfnWSAGetLastError ? g_pfnWSAGetLastError() : WSANOTINITIALISED; 50 #ifndef IPRT_NO_CRT 48 51 pVars->ai32Vars[3] = errno; 52 #endif 49 53 return pVars; 50 54 } … … 54 58 { 55 59 AssertReturnVoid(pVars->ai32Vars[0] == RTERRVARS_MAGIC); 60 #ifndef IPRT_NO_CRT 56 61 errno = pVars->ai32Vars[3]; 62 #endif 57 63 if ( pVars->ai32Vars[2] != WSANOTINITIALISED 58 64 && g_pfnWSASetLastError) … … 70 76 && pVars1->ai32Vars[1] == pVars2->ai32Vars[1] 71 77 && pVars1->ai32Vars[2] == pVars2->ai32Vars[2] 72 && pVars1->ai32Vars[3] == pVars2->ai32Vars[3]; 78 #ifndef IPRT_NO_CRT 79 && pVars1->ai32Vars[3] == pVars2->ai32Vars[3] 80 #endif 81 ; 73 82 } 74 83 … … 81 90 || (uint32_t)pVars->ai32Vars[1] != GetLastError() 82 91 || pVars->ai32Vars[2] != (g_pfnWSAGetLastError ? g_pfnWSAGetLastError() : WSANOTINITIALISED) 83 || pVars->ai32Vars[3] != errno; 92 #ifndef IPRT_NO_CRT 93 || pVars->ai32Vars[3] != errno 94 #endif 95 ; 96 84 97 } 85 98
Note:
See TracChangeset
for help on using the changeset viewer.