mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-17 02:51:27 +00:00
Completely kill off CoreLibExe
This commit is contained in:
@ -374,11 +374,11 @@ void NtInitialize () {
|
||||
(LPCTSTR) nil // name
|
||||
);
|
||||
if (!s_waitEvent)
|
||||
ErrorFatal(__LINE__, __FILE__, "CreateEvent %#x", GetLastError());
|
||||
ErrorAssert(__LINE__, __FILE__, "CreateEvent %#x", GetLastError());
|
||||
|
||||
// create IO completion port
|
||||
if (0 == (s_ioPort = CreateIoCompletionPort(INVALID_HANDLE_VALUE, 0, 0, 0)))
|
||||
ErrorFatal(__LINE__, __FILE__, "CreateIoCompletionPort %#x", GetLastError());
|
||||
ErrorAssert(__LINE__, __FILE__, "CreateIoCompletionPort %#x", GetLastError());
|
||||
|
||||
// calculate number of IO worker threads to create
|
||||
if (!s_pageSizeMask) {
|
||||
|
@ -123,7 +123,7 @@ static void FatalOnNonRecoverableError (
|
||||
}
|
||||
|
||||
ASSERT((op.opType == kOpFileRead) || (op.opType == kOpFileWrite));
|
||||
ErrorFatal(
|
||||
ErrorAssert(
|
||||
__LINE__, __FILE__,
|
||||
"Disk %s failed, error: %u",
|
||||
op.opType == kOpFileRead ? "read" : "write",
|
||||
@ -446,7 +446,7 @@ bool INtFileOpCompleteReadWrite (
|
||||
// adjust outstanding bytes
|
||||
if (bytes != op->win32Bytes) {
|
||||
if (!file->sectorSizeMask)
|
||||
ErrorFatal(__LINE__, __FILE__, "Disk %s failed", op->opType == kOpFileRead ? "read" : "write");
|
||||
ErrorAssert(__LINE__, __FILE__, "Disk %s failed", op->opType == kOpFileRead ? "read" : "write");
|
||||
if (op->opType == kOpFileRead)
|
||||
memset(op->rw.buffer + bytes, 0, op->win32Bytes - bytes);
|
||||
}
|
||||
|
Reference in New Issue
Block a user