Changeset 96388 in vbox for trunk/src/VBox/Runtime/r3/win/nocrt-startup-exe-win.cpp
- Timestamp:
- Aug 20, 2022 11:08:15 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/win/nocrt-startup-exe-win.cpp
r95892 r96388 31 31 * Header Files * 32 32 *********************************************************************************************************************************/ 33 #include "internal/ iprt.h"33 #include "internal/nocrt.h" 34 34 #include "internal/process.h" 35 35 … … 98 98 * Get and convert the command line to argc/argv format. 99 99 */ 100 rcExit = RTEXITCODE_INIT; 100 101 UNICODE_STRING const *pCmdLine = pPeb->ProcessParameters ? &pPeb->ProcessParameters->CommandLine : NULL; 101 102 if (pCmdLine) … … 118 119 } 119 120 else 120 rcExit = RTMsgErrorExitFailure("Error parsing command line: %Rrc\n", rc); 121 #ifdef IPRT_NOCRT_WITHOUT_FATAL_WRITE 122 RTMsgError("Error parsing command line: %Rrc\n", rc); 123 #else 124 rtNoCrtFatalMsgWithRc(RT_STR_TUPLE("Error parsing command line: "), rc); 125 #endif 121 126 } 122 127 else 123 rcExit = RTMsgErrorExitFailure("Failed to convert command line to UTF-8: %Rrc\n", rc); 128 #ifdef IPRT_NOCRT_WITHOUT_FATAL_WRITE 129 RTMsgError("Failed to convert command line to UTF-8: %Rrc\n", rc); 130 #else 131 rtNoCrtFatalMsgWithRc(RT_STR_TUPLE("Failed to convert command line to UTF-8: "), rc); 132 #endif 124 133 } 125 134 else 126 rcExit = RTMsgErrorExitFailure("No command line\n"); 135 #ifdef IPRT_NOCRT_WITHOUT_FATAL_WRITE 136 RTMsgError("No command line\n"); 137 #else 138 rtNoCrtFatalMsg(RT_STR_TUPLE("No command line\r\n")); 139 #endif 127 140 rtTerminateProcess(rcExit, true /*fDoAtExit*/); 128 141 } … … 130 143 else 131 144 { 145 # ifdef IPRT_NOCRT_WITHOUT_FATAL_WRITE 132 146 RTMsgError("A C static initializor failed (%d)\n", rcExit); 147 # else 148 rtNoCrtFatalWriteBegin(RT_STR_TUPLE("A C static initializor failed (")); 149 rtNoCrtFatalWriteWinRc(rcExit); 150 rtNoCrtFatalWriteEnd(RT_STR_TUPLE("\r\n")); 151 # endif 133 152 rtTerminateProcess(rcExit, false /*fDoAtExit*/); 134 153 }
Note:
See TracChangeset
for help on using the changeset viewer.