krnl386: Use the IMAGE_FIRST_SECTION helper macro.
This commit is contained in:
parent
60f0c1b30f
commit
176a6ca279
1 changed files with 1 additions and 4 deletions
|
@ -983,10 +983,7 @@ void WINAPI __wine_vxd_win32s( CONTEXT *context )
|
|||
struct Win32sModule *module = moduleTable + context->Ecx;
|
||||
|
||||
IMAGE_NT_HEADERS *nt_header = RtlImageNtHeader( (HMODULE)module->baseAddr );
|
||||
IMAGE_SECTION_HEADER *pe_seg = (IMAGE_SECTION_HEADER*)((char *)&nt_header->OptionalHeader +
|
||||
nt_header->FileHeader.SizeOfOptionalHeader);
|
||||
|
||||
|
||||
IMAGE_SECTION_HEADER *pe_seg = IMAGE_FIRST_SECTION( nt_header );
|
||||
HFILE image = _lopen(module->pathName, OF_READ);
|
||||
BOOL error = (image == HFILE_ERROR);
|
||||
UINT i;
|
||||
|
|
Loading…
Add table
Reference in a new issue