Changeset 153 in kBuild for branches/GNU/src/gmake/w32/subproc/w32err.c
- Timestamp:
- Sep 8, 2004 2:43:30 AM (20 years ago)
- File:
-
- 1 edited
-
branches/GNU/src/gmake/w32/subproc/w32err.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
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.

