Skip to content

Commit

Permalink
Bug, 解决EnterSynchronizationBarrier返回值错误
Browse files Browse the repository at this point in the history
  • Loading branch information
mingkuang-Chuyu committed Sep 11, 2024
1 parent 23f64ce commit 2302509
Show file tree
Hide file tree
Showing 2 changed files with 232 additions and 168 deletions.
4 changes: 2 additions & 2 deletions src/Thunks/api-ms-win-core-synch.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ namespace YY::Thunks::internal
}
}

static LSTATUS __fastcall RtlRunOnceComplete(
static NTSTATUS __fastcall RtlRunOnceComplete(
_Inout_ LPINIT_ONCE lpInitOnce,
_In_ DWORD dwFlags,
_In_opt_ LPVOID lpContext
Expand Down Expand Up @@ -2635,7 +2635,7 @@ namespace YY::Thunks
if (dwRtlBarrierFlags & 0x10000)
InterlockedIncrement(&pYYBarrier->lTotalThreads);

return TRUE;
return FALSE;

This comment has been minimized.

Copy link
@lygstate

lygstate Sep 12, 2024

Contributor

应该是 STATUS_SUCCESS 吧? FALSE 跟 NTSTATUS 没啥关系

This comment has been minimized.

Copy link
@mingkuang-Chuyu

mingkuang-Chuyu Sep 12, 2024

Author Collaborator

不是同一个函数。你展开中间的代码你就知道了,return FALSE,那个函数类型是 BOOL

}
#endif

Expand Down
Loading

0 comments on commit 2302509

Please sign in to comment.