[PATCH v2] kernel32/tests: Add tests for NormalizeString API function.

Sergio Gómez Del Real sdelreal at codeweavers.com
Mon Apr 9 10:28:32 CDT 2018


On 09/04/18 10:11, Dmitry Timoshkov wrote:

> Sergio Gómez Del Real <sdelreal at codeweavers.com> wrote:
>
>> +    #include <pshpack2.h>
>> +    struct test_data_normal {
>> +        const WCHAR *str;
>> +        const WCHAR *nfc;
>> +        const WCHAR *nfd;
>> +        const WCHAR *nfkc;
>> +        const WCHAR *nfkd;
>> +    };
>> +    #include <poppack.h>
> What's the reason to pack this structure to 2 bytes?
>

Hi.
If I understand correctly, that pragma option leaves no gaps between the 
fields. Later on I iterate over the structure through a WCHAR *, 
starting from nfc, so I need the guarantee of the fields being 
contiguously laid out without padding.



More information about the wine-devel mailing list