[PATCH] advapi32: Don't print 32-bit values as long integers.

Alexandre Julliard julliard at winehq.org
Wed Feb 17 08:29:31 CST 2016


Charles Davis <cdavis5x at gmail.com> writes:

> diff --git a/dlls/advapi32/cred.c b/dlls/advapi32/cred.c
> index 10e58eb..ff763ee 100644
> --- a/dlls/advapi32/cred.c
> +++ b/dlls/advapi32/cred.c
> @@ -260,7 +260,7 @@ static DWORD mac_read_credential_from_item(SecKeychainItemRef item, BOOL require
>      }
>      if (status != noErr)
>      {
> -        WARN("SecKeychainItemCopyAttributesAndData returned status %ld\n", status);
> +        WARN("SecKeychainItemCopyAttributesAndData returned status %d\n", (int)status);

It would probably be better to change the type instead of adding casts
everywhere.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list