Subject: Re: SoC: NDIS
To: Andrew R. Reiter <arr@watson.org>
From: Alan Ritter <rittera@cc.wwu.edu>
List: tech-kern
Date: 08/01/2005 15:02:05
Hi,

> If you've got less than 16 data directories, then you're probably
> overshooting into the IMAGE_SECTION_HEADER's.

I tried out your code, and got the following output:

- ../Network Driver/bcmwl5.sys is 369024 bytes in length.
- IMAGE_FILE_HEADER.SizeOfOptionalHeader: 224
-   Default length?  *Yes*
- IMAGE_OPTIONAL_HEADER.NumberOfRvaAndSizes (aka # of data directories) = 16

Looks like there are 16 directories, so that's not the problem.

Anyway, thanks for your help :-)