diff options
| author | ruki <[email protected]> | 2018-09-30 13:58:47 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2018-09-30 13:58:47 +0800 |
| commit | 7db59cdf2dddfebbf71346bb75fe0665653493fa (patch) | |
| tree | 08d0017a6d966f3ba3f043a63f331f8ed9f5a33c | |
| parent | eb47c9efc487ac55da8d8ecaf9d9bb9534376a19 (diff) | |
fix compile errors
| -rw-r--r-- | core/src/tbox/src/tbox/platform/windows/process.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/core/src/tbox/src/tbox/platform/windows/process.c b/core/src/tbox/src/tbox/platform/windows/process.c index 47afed967..6d879081c 100644 --- a/core/src/tbox/src/tbox/platform/windows/process.c +++ b/core/src/tbox/src/tbox/platform/windows/process.c @@ -16,7 +16,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * Copyright (C) 2009 - 2017, TBOOX Open Source Group. + * Copyright (C) 2009 - 2018, TBOOX Open Source Group. * * @author ruki * @file process.c @@ -313,12 +313,12 @@ tb_void_t tb_process_exit(tb_process_ref_t self) // close thread handle if (process->pi.hThread != INVALID_HANDLE_VALUE) - tb_kernel32()->CloseHandle(process->pi.hThread); + CloseHandle(process->pi.hThread); process->pi.hThread = INVALID_HANDLE_VALUE; // close process handle if (process->pi.hProcess != INVALID_HANDLE_VALUE) - tb_kernel32()->CloseHandle(process->pi.hProcess); + CloseHandle(process->pi.hProcess); process->pi.hProcess = INVALID_HANDLE_VALUE; // exit stdout file @@ -380,11 +380,11 @@ tb_long_t tb_process_wait(tb_process_ref_t self, tb_long_t* pstatus, tb_long_t t if (pstatus) *pstatus = tb_kernel32()->GetExitCodeProcess(process->pi.hProcess, &exitcode)? (tb_long_t)exitcode : -1; // close thread handle - tb_kernel32()->CloseHandle(process->pi.hThread); + CloseHandle(process->pi.hThread); process->pi.hThread = INVALID_HANDLE_VALUE; // close process - tb_kernel32()->CloseHandle(process->pi.hProcess); + CloseHandle(process->pi.hProcess); process->pi.hProcess = INVALID_HANDLE_VALUE; // ok @@ -442,11 +442,11 @@ tb_long_t tb_process_waitlist(tb_process_ref_t const* processes, tb_process_wait infosize++; // close thread handle - tb_kernel32()->CloseHandle(process->pi.hThread); + CloseHandle(process->pi.hThread); process->pi.hThread = INVALID_HANDLE_VALUE; // close process - tb_kernel32()->CloseHandle(process->pi.hProcess); + CloseHandle(process->pi.hProcess); process->pi.hProcess = INVALID_HANDLE_VALUE; // next index @@ -479,11 +479,11 @@ tb_long_t tb_process_waitlist(tb_process_ref_t const* processes, tb_process_wait infosize++; // close thread handle - tb_kernel32()->CloseHandle(process->pi.hThread); + CloseHandle(process->pi.hThread); process->pi.hThread = INVALID_HANDLE_VALUE; // close process - tb_kernel32()->CloseHandle(process->pi.hProcess); + CloseHandle(process->pi.hProcess); process->pi.hProcess = INVALID_HANDLE_VALUE; // next index |
