include: Change RPC_STATUS from long to LONG for Win64 compatibility.

Michael Stefaniuc mstefani at redhat.com
Sat Jan 3 19:00:18 CST 2009


James Hawkins wrote:
> On Sat, Jan 3, 2009 at 4:49 PM, Michael Stefaniuc <mstefani at redhat.de> wrote:
>> Also fix the compiler warnings introduced by this change.
>>
>> diff --git a/dlls/advapi32/crypt.c b/dlls/advapi32/crypt.c
>> index 5d0b15e..8ef0a5f 100644
>> --- a/dlls/advapi32/crypt.c
>> +++ b/dlls/advapi32/crypt.c
>> @@ -305,7 +305,7 @@ static void CRYPT_CreateMachineGuid(void)
>>                                     '%','0','2','x','%','0','2','x',
>>                                     '%','0','2','x',0 };
>>
>> -                               pUuidCreate = GetProcAddress(lib, "UuidCreate");
>> +                                pUuidCreate = (void *)GetProcAddress(lib, "UuidCreate");
>>                                 rs = pUuidCreate(&uuid);
>>                                 if (rs == S_OK)
>>                                 {
> 
> Inadvertent change?
Nope, the compiler really started complaining about that after I changed 
RPC_STATUS from long to LONG.
pUuidCreate is defined as
   RPC_STATUS (RPC_ENTRY *pUuidCreate)(UUID *);


bye
	michael



More information about the wine-devel mailing list