oleaut32[3/3]: VT_USERDEFINED records are passed by value (with testcase, fixes bug #14639)

Alexandre Julliard julliard at winehq.org
Mon Sep 15 06:20:42 CDT 2008


Mikołaj Zalewski <mikolaj at zalewski.pl> writes:

> +const MYSTRUCT MYSTRUCT_BYVAL = {0x12345678, 0xdeadbeef98765432ULL};
> +const MYSTRUCT MYSTRUCT_BYPTR = {0x91827364, 0x8877665544332211ULL};
> +const MYSTRUCT MYSTRUCT_ARRAY[5] = {
> +    {0x1a1b1c1d, 0x1e1f101112131415ULL},
> +    {0x2a2b2c2d, 0x2e2f202122232425ULL},
> +    {0x3a3b3c3d, 0x3e3f303132333435ULL},
> +    {0x4a4b4c4d, 0x4e4f404142434445ULL},
> +    {0x5a5b5c5d, 0x5e5f505152535455ULL},
> +};

long long constants are not portable, please avoid them.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list