imagehlp/tests: Use nameless unions/structs.

This commit is contained in:
Alexandre Julliard 2023-07-20 11:35:08 +02:00
parent 8fe23255a5
commit 17bccc860a

View file

@ -19,7 +19,6 @@
#include <stdio.h> #include <stdio.h>
#include <stdarg.h> #include <stdarg.h>
#define NONAMELESSUNION
#include <windef.h> #include <windef.h>
#include <winbase.h> #include <winbase.h>
#include <winver.h> #include <winver.h>
@ -234,8 +233,8 @@ static const struct expected_blob b1[] = {
{sizeof(bin.nt_headers), &bin.nt_headers}, {sizeof(bin.nt_headers), &bin.nt_headers},
{sizeof(bin.sections), &bin.sections}, {sizeof(bin.sections), &bin.sections},
{FILE_IDATA-FILE_TEXT, &bin.text_section}, {FILE_IDATA-FILE_TEXT, &bin.text_section},
{sizeof(bin.idata_section.descriptors[0].u.OriginalFirstThunk), {sizeof(bin.idata_section.descriptors[0].OriginalFirstThunk),
&bin.idata_section.descriptors[0].u.OriginalFirstThunk}, &bin.idata_section.descriptors[0].OriginalFirstThunk},
{FIELD_OFFSET(struct Imports, thunks)- {FIELD_OFFSET(struct Imports, thunks)-
(FIELD_OFFSET(struct Imports, descriptors)+FIELD_OFFSET(IMAGE_IMPORT_DESCRIPTOR, Name)), (FIELD_OFFSET(struct Imports, descriptors)+FIELD_OFFSET(IMAGE_IMPORT_DESCRIPTOR, Name)),
&bin.idata_section.descriptors[0].Name}, &bin.idata_section.descriptors[0].Name},