[PATCH] avrt: Add AvQuerySystemResponsiveness stub.

Huw Davies huw at codeweavers.com
Wed Aug 16 06:33:48 CDT 2017


On Wed, Aug 16, 2017 at 02:22:13PM +0300, Andrey Gusev wrote:
> Signed-off-by: Andrey Gusev <andrey.goosev at gmail.com>
> ---
>  dlls/avrt/avrt.spec | 2 +-
>  dlls/avrt/main.c    | 6 ++++++
>  2 files changed, 7 insertions(+), 1 deletion(-)
> 
> diff --git a/dlls/avrt/avrt.spec b/dlls/avrt/avrt.spec
> index 640a12ac22..a7dfc42879 100644
> --- a/dlls/avrt/avrt.spec
> +++ b/dlls/avrt/avrt.spec
> @@ -1,4 +1,4 @@
> -@ stub AvQuerySystemResponsiveness
> +@ stdcall AvQuerySystemResponsiveness(long ptr)
>  @ stdcall AvRevertMmThreadCharacteristics(long)
>  @ stub AvRtCreateThreadOrderingGroup
>  @ stub AvRtCreateThreadOrderingGroupExA
> diff --git a/dlls/avrt/main.c b/dlls/avrt/main.c
> index 8a110250ae..68e44d6098 100644
> --- a/dlls/avrt/main.c
> +++ b/dlls/avrt/main.c
> @@ -83,6 +83,12 @@ HANDLE WINAPI AvSetMmThreadCharacteristicsW(LPCWSTR TaskName, LPDWORD TaskIndex)
>      return (HANDLE)0x12345678;
>  }
>  
> +BOOL WINAPI AvQuerySystemResponsiveness(HANDLE AvrtHandle, PULONG SystemResponsivenessValue)
> +{
> +    FIXME("(%p, %p): stub\n", AvrtHandle, SystemResponsivenessValue);
> +    return TRUE;
> +}
> +

If you're going to return TRUE, you need to initialize
*SystemResponsivenessValue to something meaningful.

While you're at it, we generally prefer 'ULONG *' to 'PULONG',
although I realise there are several of the latter form in this file.

Huw.



More information about the wine-devel mailing list