https://git.reactos.org/?p=reactos.git;a=commitdiff;h=626b06bb5a7f084ca33804d0b32302a291c4b8d2

commit 626b06bb5a7f084ca33804d0b32302a291c4b8d2
Author:     Timo Kreuzer <timo.kreu...@reactos.org>
AuthorDate: Sun May 5 09:46:43 2024 +0300
Commit:     Timo Kreuzer <timo.kreu...@reactos.org>
CommitDate: Tue Nov 5 10:54:21 2024 +0200

    [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);

Reply via email to