Skip to content

Commit 34b81a8

Browse files
authored
Merge pull request #35 from TheNNX/cmd
2 parents 0b84df4 + 08bc5cf commit 34b81a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

COREDLL/winbase_wcecl.cpp

+6-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BOOL SystemTimeToFileTime_WCECL(
1212

1313
BOOL FileTimeToLocalFileTime_WCECL(
1414
const FILETIME* lpFileTime,
15-
LPFILETIME lpLocalFileTime)
15+
LPFILETIME lpLocalFileTime)
1616
{
1717
auto result = ::FileTimeToLocalFileTime(lpFileTime, lpLocalFileTime);
1818
return result;
@@ -590,6 +590,11 @@ BOOL WINAPI TerminateProcess_WCECL(
590590
HANDLE hProcess,
591591
DWORD uExitCode)
592592
{
593+
/* GetCurrentProcess() seems to be inlined to 0x42 for WinCE */
594+
if (hProcess == (HANDLE)0x42)
595+
{
596+
hProcess = GetCurrentProcess();
597+
}
593598
auto result = ::TerminateProcess(hProcess, uExitCode);
594599
return result;
595600
}

0 commit comments

Comments
 (0)