Skip to content

Commit 626b06b

Browse files
committed
[RTL] actctx.c: add an #ifdef __REACTOS__
1 parent d58a040 commit 626b06b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

sdk/lib/rtl/actctx.c

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5763,6 +5763,7 @@ NTSTATUS WINAPI RtlFindActivationContextSectionString( ULONG flags, const GUID *
57635763
NTSTATUS status = STATUS_SXS_KEY_NOT_FOUND;
57645764

57655765
DPRINT("RtlFindActivationContextSectionString(%x %p %x %wZ %p)\n", flags, guid, section_kind, section_name, ptr);
5766+
#ifdef __REACTOS__
57665767
status = RtlpFindActivationContextSection_CheckParameters(flags, guid, section_kind, section_name, data);
57675768
if (!NT_SUCCESS(status))
57685769
{
@@ -5779,6 +5780,24 @@ NTSTATUS WINAPI RtlFindActivationContextSectionString( ULONG flags, const GUID *
57795780
DPRINT("RtlFindActivationContextSectionString() failed with status %x\n", status);
57805781
return status;
57815782
}
5783+
#else
5784+
if (guid)
5785+
{
5786+
FIXME("expected guid == NULL\n");
5787+
return STATUS_INVALID_PARAMETER;
5788+
}
5789+
if (flags & ~FIND_ACTCTX_SECTION_KEY_RETURN_HACTCTX)
5790+
{
5791+
FIXME("unknown flags %08x\n", flags);
5792+
return STATUS_INVALID_PARAMETER;
5793+
}
5794+
if ((data && data->cbSize < offsetof(ACTCTX_SECTION_KEYED_DATA, ulAssemblyRosterIndex)) ||
5795+
!section_name || !section_name->Buffer)
5796+
{
5797+
WARN("invalid parameter\n");
5798+
return STATUS_INVALID_PARAMETER;
5799+
}
5800+
#endif // __REACTOS__
57825801

57835802
ASSERT(NtCurrentTeb());
57845803
ASSERT(NtCurrentTeb()->ActivationContextStackPointer);

0 commit comments

Comments
 (0)