From 626b06bb5a7f084ca33804d0b32302a291c4b8d2 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 5 May 2024 09:46:43 +0300 Subject: [PATCH] [RTL] actctx.c: add an #ifdef __REACTOS__ --- sdk/lib/rtl/actctx.c | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/sdk/lib/rtl/actctx.c b/sdk/lib/rtl/actctx.c index a2d9080cb85..3a102f1c725 100644 --- a/sdk/lib/rtl/actctx.c +++ b/sdk/lib/rtl/actctx.c @@ -5763,6 +5763,7 @@ NTSTATUS WINAPI RtlFindActivationContextSectionString( ULONG flags, const GUID * NTSTATUS status = STATUS_SXS_KEY_NOT_FOUND; DPRINT("RtlFindActivationContextSectionString(%x %p %x %wZ %p)\n", flags, guid, section_kind, section_name, ptr); +#ifdef __REACTOS__ status = RtlpFindActivationContextSection_CheckParameters(flags, guid, section_kind, section_name, data); if (!NT_SUCCESS(status)) { @@ -5779,6 +5780,24 @@ NTSTATUS WINAPI RtlFindActivationContextSectionString( ULONG flags, const GUID * DPRINT("RtlFindActivationContextSectionString() failed with status %x\n", status); return status; } +#else + if (guid) + { + FIXME("expected guid == NULL\n"); + return STATUS_INVALID_PARAMETER; + } + if (flags & ~FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX) + { + FIXME("unknown flags %08x\n", flags); + return STATUS_INVALID_PARAMETER; + } + if ((data && data->cbSize < offsetof(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex)) || + !section_name || !section_name->Buffer) + { + WARN("invalid parameter\n"); + return STATUS_INVALID_PARAMETER; + } +#endif // __REACTOS__ ASSERT(NtCurrentTeb()); ASSERT(NtCurrentTeb()->ActivationContextStackPointer);