[PATCH] [WinHelp]: fix regression introduced by Dmitry's Win64 warning fixes

Alexandre Julliard julliard at winehq.org
Wed Apr 16 07:41:13 CDT 2008


Eric Pouech <eric.pouech at orange.fr> writes:

> index 8181469..bf942a4 100644
> --- a/programs/winhelp/hlpfile.c
> +++ b/programs/winhelp/hlpfile.c
> @@ -158,8 +158,8 @@ HLPFILE_PAGE *HLPFILE_PageByOffset(HLPFILE* hlpfile, LONG offset)
>  static int comp_PageByHash(void *p, const void *key,
>                             int leaf, void** next)
>  {
> -    ULONG_PTR lKey = (LONG_PTR)key;
> -    ULONG_PTR lTest = GET_UINT(p, 0);
> +    LONG_PTR lKey = (LONG_PTR)key;
> +    LONG_PTR lTest = GET_UINT(p, 0);

This won't work on 64-bit. If the hash really needs to be signed (why?)
you need some extra casts.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list