search for: image_resource_directory

Displaying 2 results from an estimated 2 matches for "image_resource_directory".

2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
More information on exception #2. The offending function is: /********************************************************************** * find_entry_by_id * * Find an entry by id in a resource directory */ static const IMAGE_RESOURCE_DIRECTORY *find_entry_by_id( const IMAGE_RESOURCE_DIRECTORY *dir, WORD id, const void *root ) { const IMAGE_RESOURCE_DIRECTORY_ENTRY *entry; int min, max, pos; entry = (const IMAGE_RESOURCE_DIRECTORY_ENTRY *)(dir + 1); min = dir...
2001 Dec 08
1
LoadOEMResource crash [Was: Re: Problem report: SHRINKER.ERR, fix to DEVICE_Open/CreateFileA? ]
...LER_CONTEXT) ); (gdb) up #3 <signal handler called> (gdb) up #4 find_entry_by_id (dir=0x45f000, id=14, root=0x45f000) at pe_resource.c:83 83 min = dir->NumberOfNamedEntries; (gdb) That's what I thought in the first place. I'll try to print out dir: (gdb) p dir $14 = (IMAGE_RESOURCE_DIRECTORY *) 0xc0000005 Huh? The stack trace says the argument is 0x45f000, not 0xc0000005. So I'll re-run the program, but this time I'll add a breakpoint at pe_resource.c:find_entry_by_id (just entering "find_entry_by_id" results in gdb setting the breakpoint in a file other than pe_...