Changeset 153 in kBuild for branches/GNU/src/gmake/w32
- Timestamp:
- Sep 8, 2004 2:43:30 AM (21 years ago)
- Location:
- branches/GNU/src/gmake/w32/subproc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/w32/subproc/sub_proc.c
r53 r153 1194 1194 if (process_begin(hProcess, argv, envp, argv[0], NULL)) { 1195 1195 fake_exits_pending++; 1196 /* process_begin() failed: make a note of that. */ 1197 if (!((sub_process*) hProcess)->last_err) 1198 ((sub_process*) hProcess)->last_err = -1; 1196 1199 ((sub_process*) hProcess)->exit_code = process_last_err(hProcess); 1197 1200 -
branches/GNU/src/gmake/w32/subproc/w32err.c
r53 r153 7 7 * Returns: a pointer to a static error 8 8 * 9 * Notes/Dependencies: I got this from 9 * Notes/Dependencies: I got this from 10 10 * comp.os.ms-windows.programmer.win32 11 11 */ 12 char * 12 char * 13 13 map_windows32_error_to_string (DWORD ercode) { 14 14 /* __declspec (thread) necessary if you will use multiple threads */ 15 15 __declspec (thread) static char szMessageBuffer[128]; 16 17 /* Fill message buffer with a default message in 18 * case FormatMessage fails 16 17 /* Fill message buffer with a default message in 18 * case FormatMessage fails 19 19 */ 20 wsprintf (szMessageBuffer, "Error %ld ", ercode);20 wsprintf (szMessageBuffer, "Error %ld\n", ercode); 21 21 22 22 /* … … 34 34 NULL); 35 35 FreeLibrary(hModule); 36 } 36 } 37 37 } else { 38 38 /* … … 49 49 return szMessageBuffer; 50 50 } 51 51
Note:
See TracChangeset
for help on using the changeset viewer.