Lines Matching refs:dir

153     /* append default dll dir (if not empty) to path */
225 case 0: /* try dlls dir with subdir prefix */
231 case 1: /* try programs dir with subdir prefix */
260 context->index = build_dir ? 0 : 2; /* if no build dir skip all the build dir magic cases */
325 static void fixup_imports( IMAGE_IMPORT_DESCRIPTOR *dir, BYTE *base, int delta )
329 while (dir->Name)
331 fixup_rva_dwords( &dir->u.OriginalFirstThunk, delta, 1 );
332 fixup_rva_dwords( &dir->Name, delta, 1 );
333 fixup_rva_dwords( &dir->FirstThunk, delta, 1 );
334 ptr = (UINT_PTR *)(base + (dir->u.OriginalFirstThunk ? dir->u.OriginalFirstThunk : dir->FirstThunk));
340 dir++;
346 static void fixup_exports( IMAGE_EXPORT_DIRECTORY *dir, BYTE *base, int delta )
348 fixup_rva_dwords( &dir->Name, delta, 1 );
349 fixup_rva_dwords( &dir->AddressOfFunctions, delta, 1 );
350 fixup_rva_dwords( &dir->AddressOfNames, delta, 1 );
351 fixup_rva_dwords( &dir->AddressOfNameOrdinals, delta, 1 );
352 fixup_rva_dwords( (DWORD *)(base + dir->AddressOfNames), delta, dir->NumberOfNames );
353 fixup_rva_ptrs( (base + dir->AddressOfFunctions), base, dir->NumberOfFunctions );
358 static void fixup_resources( IMAGE_RESOURCE_DIRECTORY *dir, BYTE *root, int delta )
363 entry = (IMAGE_RESOURCE_DIRECTORY_ENTRY *)(dir + 1);
364 for (i = 0; i < dir->NumberOfNamedEntries + dir->NumberOfIdEntries; i++, entry++)
381 IMAGE_DATA_DIRECTORY *dir;
465 dir = &nt->OptionalHeader.DataDirectory[IMAGE_FILE_IMPORT_DIRECTORY];
466 if (dir->Size)
468 IMAGE_IMPORT_DESCRIPTOR *imports = (void *)(addr + dir->VirtualAddress);
474 dir = &nt->OptionalHeader.DataDirectory[IMAGE_FILE_RESOURCE_DIRECTORY];
475 if (dir->Size)
477 void *ptr = (void *)(addr + dir->VirtualAddress);
483 dir = &nt->OptionalHeader.DataDirectory[IMAGE_FILE_EXPORT_DIRECTORY];
484 if (dir->Size)
486 IMAGE_EXPORT_DIRECTORY *exports = (void *)(addr + dir->VirtualAddress);
717 /* if we didn't use the default dll dir, remove it from the search path */