[ros-dev] [ros-diffs] [hbelusca] 66192: [WINLOGON][WIN32K] Move the shutdown privilege check from winlogon to win32k (function "UserInitiateShutdown") as it should be done. [WIN32K] - Introduce the pair of UserInitiateS...

Thomas Faber thomas.faber at reactos.org
Sun Feb 8 10:37:12 UTC 2015


On 2015-02-07 16:26, hbelusca at svn.reactos.org wrote:
> @@ -792,24 +791,54 @@
>          case UserThreadInitiateShutdown:
>          {
>              ERR("Shutdown initiated\n");
> -            STUB;
> -            Status = STATUS_NOT_IMPLEMENTED;
> +
> +            if (ThreadInformationLength != sizeof(ULONG))
> +            {
> +                Status = STATUS_INFO_LENGTH_MISMATCH;
> +                break;
> +            }
> +
> +            Status = UserInitiateShutdown(Thread, (PULONG)ThreadInformation);
>              break;
>          }

This looks like contrary to the other cases, ThreadInformation is
neither probed, nor accessed inside SEH here?



More information about the Ros-dev mailing list