https://git.reactos.org/?p=reactos.git;a=commitdiff;h=20b5a26a3c7e7f435bbca…
commit 20b5a26a3c7e7f435bbca1997bf5158de68ab032
Author: Timo Kreuzer <timo.kreuzer(a)reactos.org>
AuthorDate: Sun May 5 08:40:38 2024 +0300
Commit: Timo Kreuzer <timo.kreuzer(a)reactos.org>
CommitDate: Tue Nov 5 10:54:21 2024 +0200
[RTL] actctx.c: rename RefCount back to ref_count like in wine
There is no point in changing the name of this field.
---
sdk/lib/rtl/actctx.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sdk/lib/rtl/actctx.c b/sdk/lib/rtl/actctx.c
index 540d5ff511f..6a0bf6bd5fe 100644
--- a/sdk/lib/rtl/actctx.c
+++ b/sdk/lib/rtl/actctx.c
@@ -570,7 +570,7 @@ typedef struct _ASSEMBLY_STORAGE_MAP
typedef struct _ACTIVATION_CONTEXT
{
#ifdef __REACTOS__
- LONG RefCount;
+ LONG ref_count;
ULONG Flags;
LIST_ENTRY Links;
PACTIVATION_CONTEXT_DATA ActivationContextData;
@@ -600,7 +600,7 @@ typedef struct _ACTIVATION_CONTEXT
struct guidsection_header *comserver_section;
struct guidsection_header *ifaceps_section;
struct guidsection_header *clrsurrogate_section;
-} ACTIVATION_CONTEXT, *PIACTIVATION_CONTEXT;
+} ACTIVATION_CONTEXT;
struct actctx_loader
{
@@ -1280,14 +1280,14 @@ static ACTIVATION_CONTEXT *check_actctx( HANDLE h )
static inline void actctx_addref( ACTIVATION_CONTEXT *actctx )
{
- InterlockedExchangeAdd( &actctx->RefCount, 1 );
+ InterlockedIncrement( &actctx->ref_count );
}
static void actctx_release( ACTIVATION_CONTEXT *actctx )
{
PACTIVATION_CONTEXT_WRAPPED pActual;
- if (InterlockedExchangeAdd(&actctx->RefCount, -1) == 1)
+ if (!InterlockedDecrement( &actctx->ref_count ))
{
unsigned int i, j;
@@ -5232,7 +5232,7 @@ RtlCreateActivationContext(IN ULONG Flags,
ActualActCtx->MagicMarker = ACTCTX_MAGIC_MARKER;
actctx = &ActualActCtx->ActivationContext;
- actctx->RefCount = 1;
+ actctx->ref_count = 1;
actctx->config.type = ACTIVATION_CONTEXT_PATH_TYPE_NONE;
actctx->config.info = NULL;
actctx->appdir.type = ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE;