mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-10 15:58:09 +00:00
adjust internal definition of sync barrier type to match windows
This commit is contained in:
@@ -1772,6 +1772,11 @@ w32_entry_point_caller(int argc, WCHAR **wargv)
|
|||||||
w32_InitializeSynchronizationBarrier_func = (W32_InitializeSynchronizationBarrier_Type *)GetProcAddress(module, "InitializeSynchronizationBarrier");
|
w32_InitializeSynchronizationBarrier_func = (W32_InitializeSynchronizationBarrier_Type *)GetProcAddress(module, "InitializeSynchronizationBarrier");
|
||||||
w32_DeleteSynchronizationBarrier_func = (W32_DeleteSynchronizationBarrier_Type *)GetProcAddress(module, "DeleteSynchronizationBarrier");
|
w32_DeleteSynchronizationBarrier_func = (W32_DeleteSynchronizationBarrier_Type *)GetProcAddress(module, "DeleteSynchronizationBarrier");
|
||||||
w32_EnterSynchronizationBarrier_func = (W32_EnterSynchronizationBarrier_Type *)GetProcAddress(module, "EnterSynchronizationBarrier");
|
w32_EnterSynchronizationBarrier_func = (W32_EnterSynchronizationBarrier_Type *)GetProcAddress(module, "EnterSynchronizationBarrier");
|
||||||
|
if(w32_InitializeSynchronizationBarrier_func == 0)
|
||||||
|
{
|
||||||
|
w32_DeleteSynchronizationBarrier_func = 0;
|
||||||
|
w32_EnterSynchronizationBarrier_func = 0;
|
||||||
|
}
|
||||||
FreeLibrary(module);
|
FreeLibrary(module);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -56,11 +56,15 @@ W32_EntityKind;
|
|||||||
typedef struct W32_SYNCHRONIZATION_BARRIER W32_SYNCHRONIZATION_BARRIER;
|
typedef struct W32_SYNCHRONIZATION_BARRIER W32_SYNCHRONIZATION_BARRIER;
|
||||||
struct W32_SYNCHRONIZATION_BARRIER
|
struct W32_SYNCHRONIZATION_BARRIER
|
||||||
{
|
{
|
||||||
U32 reserved_0;
|
DWORD reserved_0;
|
||||||
U32 reserved_1;
|
DWORD reserved_1;
|
||||||
|
#if ARCH_32BIT
|
||||||
|
U32 reserved_2[2];
|
||||||
|
#else
|
||||||
U64 reserved_2[2];
|
U64 reserved_2[2];
|
||||||
U32 reserved_3;
|
#endif
|
||||||
U32 reserved_4;
|
DWORD reserved_3;
|
||||||
|
DWORD reserved_4;
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct W32_Entity W32_Entity;
|
typedef struct W32_Entity W32_Entity;
|
||||||
|
|||||||
Reference in New Issue
Block a user