Changeset 284 in kBuild for branches/GNU/src/gmake/w32/subproc
- Timestamp:
- May 16, 2005 4:54:08 PM (20 years ago)
- Location:
- branches/GNU/src/gmake/w32/subproc
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gmake/w32/subproc/NMakefile
r53 r284 24 24 LIB = lib 25 25 CC = cl 26 MAKE = nmake 26 27 27 28 OUTDIR=. -
branches/GNU/src/gmake/w32/subproc/sub_proc.c
r153 r284 665 665 HANDLE ready_hand; 666 666 bool_t child_dead = FALSE; 667 667 BOOL GetExitCodeResult; 668 668 669 669 /* 670 670 * Create stdin thread, if needed 671 671 */ 672 673 672 pproc->inp = stdin_data; 673 pproc->incnt = stdin_data_len; 674 674 if (!pproc->inp) { 675 675 stdin_eof = TRUE; … … 763 763 } else if (ready_hand == childhand) { 764 764 765 if (GetExitCodeProcess(childhand, &pproc->exit_code) == FALSE) { 765 GetExitCodeResult = GetExitCodeProcess(childhand, (DWORD*)&pproc->exit_code); 766 if (GetExitCodeResult == FALSE) { 766 767 pproc->last_err = GetLastError(); 767 768 pproc->lerrno = E_SCALL; … … 810 811 HANDLE childhand; 811 812 DWORD wait_return; 813 BOOL GetExitCodeResult; 812 814 813 815 if (proc == NULL) … … 853 855 } 854 856 855 if (GetExitCodeProcess(childhand, &pproc->exit_code) == FALSE) { 857 GetExitCodeResult = GetExitCodeProcess(childhand, (DWORD*)&pproc->exit_code); 858 if (GetExitCodeResult == FALSE) { 856 859 pproc->last_err = GetLastError(); 857 860 pproc->lerrno = E_SCALL; -
branches/GNU/src/gmake/w32/subproc/w32err.c
r153 r284 12 12 char * 13 13 map_windows32_error_to_string (DWORD ercode) { 14 /* __declspec (thread) necessary if you will use multiple threads */ 14 /* __declspec (thread) necessary if you will use multiple threads on MSVC */ 15 #ifdef _MSC_VER 15 16 __declspec (thread) static char szMessageBuffer[128]; 16 17 #else 18 static char szMessageBuffer[128]; 19 #endif 17 20 /* Fill message buffer with a default message in 18 21 * case FormatMessage fails
Note:
See TracChangeset
for help on using the changeset viewer.