remove weird double spaces, remove /EXPORT from build.bat in favor of __declspec(dllexport)
This commit is contained in:
1 parent
9fa2a7e0db
commit
83d48e09bb
41 files changed
+156
-170
No files matched your search
@@ -26,7 +26,7 @@
|
||||
// -> obj->Destroy(obj) [type-specific cleanup, e.g. FileDestroy]
|
||||
// -> MmFreePool(obj)
|
||||
//
|
||||
// There is no separate SyscallCloseFile. Removing that stub was the right
|
||||
// There is no separate SyscallCloseFile. Removing that stub was the right
|
||||
// call: the object model already handled it; the dedicated syscall was only
|
||||
// adding a footgun where callers could bypass the unified refcount path.
|
||||
|
||||
@@ -288,7 +288,7 @@ static uint64_t SyscallSemCreate(uint64_t a0, uint64_t a1, uint64_t a2,
|
||||
(void)a3; (void)a4; (void)a5;
|
||||
if (!a2) return STATUS_INVALID_PARAMETER;
|
||||
SEMAPHORE* sem = NULL;
|
||||
KSTATUS s = SemaphoreCreate((int32_t)a0, (int32_t)a1, &sem);
|
||||
KSTATUS s = KeSemaphoreCreate((int32_t)a0, (int32_t)a1, &sem);
|
||||
if (!KSUCCESS(s)) return s;
|
||||
uint32_t h = 0;
|
||||
s = AllocHandleForCurrent(&sem->Header, &h);
|
||||
@@ -440,8 +440,8 @@ static uint64_t SyscallQueueRecv(uint64_t a0, uint64_t a1, uint64_t a2,
|
||||
// ---------------------------------------------------------------------------
|
||||
// SYS_CLOSE_HANDLE (26) a0 = handle
|
||||
//
|
||||
// The one and only close path. KeCloseHandle drops the handle-table reference
|
||||
// on 'obj'. If that was the last reference, ObDereferenceObject runs the
|
||||
// The one and only close path. KeCloseHandle drops the handle-table reference
|
||||
// on 'obj'. If that was the last reference, ObDereferenceObject runs the
|
||||
// type-specific Destroy callback (FileDestroy, etc.) and frees the pool memory.
|
||||
// No per-type close syscall needed or wanted.
|
||||
// ---------------------------------------------------------------------------
|
||||
|
||||
Reference in new issue
Block a user