[ros-dev] [ros-diffs] [tkreuzer] 64658: [NTDLL] Don't assert that the caller of exported APIs passes correct parameters.
Alex Ionescu
ionucu at videotron.ca
Sat Oct 11 16:45:43 UTC 2014
Windows does. Why shouldn't we? It's a non-documented API.
Best regards,
Alex Ionescu
On Sat, Oct 11, 2014 at 1:52 AM, <tkreuzer at svn.reactos.org> wrote:
> Author: tkreuzer
> Date: Sat Oct 11 08:52:33 2014
> New Revision: 64658
>
> URL: http://svn.reactos.org/svn/reactos?rev=64658&view=rev
> Log:
> [NTDLL]
> Don't assert that the caller of exported APIs passes correct parameters.
>
> Modified:
> trunk/reactos/dll/ntdll/ldr/ldrapi.c
>
> Modified: trunk/reactos/dll/ntdll/ldr/ldrapi.c
> URL:
> http://svn.reactos.org/svn/reactos/trunk/reactos/dll/ntdll/ldr/ldrapi.c?rev=64658&r1=64657&r2=64658&view=diff
>
> ==============================================================================
> --- trunk/reactos/dll/ntdll/ldr/ldrapi.c [iso-8859-1] (original)
> +++ trunk/reactos/dll/ntdll/ldr/ldrapi.c [iso-8859-1] Sat Oct 11
> 08:52:33 2014
> @@ -209,9 +209,6 @@
> /* A normal failure */
> return STATUS_INVALID_PARAMETER_3;
> }
> -
> - /* Do or Do Not. There is no Try */
> - ASSERT((Disposition != NULL) || !(Flags &
> LDR_LOCK_LOADER_LOCK_FLAG_TRY_ONLY));
>
> /* If the flag is set, make sure we have a valid pointer to use */
> if ((Flags & LDR_LOCK_LOADER_LOCK_FLAG_TRY_ONLY) && !(Disposition))
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.reactos.org/pipermail/ros-dev/attachments/20141011/1daa5bef/attachment.html>
More information about the Ros-dev
mailing list