[PATCH] advapi32: Add magic codes to HCRYPTKEY and HCRYPTHASH.

Austin Lund austin.lund at gmail.com
Wed Aug 18 05:02:42 CDT 2010

On 18 August 2010 18:34, Hans Leidekker <hans at codeweavers.com> wrote:
> On Wed, 2010-08-18 at 10:14 +1000, Austin Lund wrote:
>>  #define MAGIC_CRYPTPROV 0xA39E741F
>> +#define MAGIC_CRYPTKEY 0xA39E741F
>> +#define MAGIC_CRYPTHASH 0xA39E741F
> The app might pass a crypto handle of the wrong type, so it would be
> better to use different magic values.

Are there any rules to these magic values?  Why was 0xA39E741F chosen?

More information about the wine-devel mailing list