This commit is contained in:
Wengier
2021-06-20 02:59:11 -04:00
parent 04158f0a8f
commit 94ed192e18

View File

@@ -621,18 +621,6 @@ typedef struct {
UINT8 reserved[8];
} ext_space_info_t;
#if defined (WIN32) && !defined(HX_DOS)
intptr_t hret=0;
void EndRunProcess() {
if(hret) {
DWORD exitCode;
GetExitCodeProcess((HANDLE)hret, &exitCode);
if (exitCode==STILL_ACTIVE)
TerminateProcess((HANDLE)hret, 0);
}
ctrlbrk=false;
}
char res1[CROSS_LEN] = {0}, res2[CROSS_LEN], *result;
const char * TranslateHostPath(const char * arg, bool next = false) {
result = next ? res2: res1;
@@ -679,6 +667,18 @@ const char * TranslateHostPath(const char * arg, bool next = false) {
return result;
}
#if defined (WIN32) && !defined(HX_DOS)
intptr_t hret=0;
void EndRunProcess() {
if(hret) {
DWORD exitCode;
GetExitCodeProcess((HANDLE)hret, &exitCode);
if (exitCode==STILL_ACTIVE)
TerminateProcess((HANDLE)hret, 0);
}
ctrlbrk=false;
}
void HostAppRun() {
char comline[256], *p=comline;
char winDirCur[512], winDirNew[512], winName[256], dir[CROSS_LEN+15];