Commit 279339a6 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

loader: Remove unused variables.

parent 549bc47d
...@@ -302,7 +302,6 @@ static DWORD fixup_imports( WINE_MODREF *wm ) ...@@ -302,7 +302,6 @@ static DWORD fixup_imports( WINE_MODREF *wm )
*/ */
for (i = 0, pe_imp = pem->pe_import; pe_imp->Name ; pe_imp++) { for (i = 0, pe_imp = pem->pe_import; pe_imp->Name ; pe_imp++) {
WINE_MODREF *wmImp;
IMAGE_IMPORT_BY_NAME *pe_name; IMAGE_IMPORT_BY_NAME *pe_name;
PIMAGE_THUNK_DATA import_list,thunk_list; PIMAGE_THUNK_DATA import_list,thunk_list;
char *name = (char *) RVA(pe_imp->Name); char *name = (char *) RVA(pe_imp->Name);
...@@ -451,13 +450,13 @@ static void do_relocations( unsigned int load_addr, IMAGE_BASE_RELOCATION *r ) ...@@ -451,13 +450,13 @@ static void do_relocations( unsigned int load_addr, IMAGE_BASE_RELOCATION *r )
*/ */
HMODULE PE_LoadImage( int handle, LPCSTR filename, WORD *version ) HMODULE PE_LoadImage( int handle, LPCSTR filename, WORD *version )
{ {
(void)filename;
HMODULE hModule; HMODULE hModule;
HANDLE mapping; HANDLE mapping;
IMAGE_NT_HEADERS *nt; IMAGE_NT_HEADERS *nt;
IMAGE_SECTION_HEADER *pe_sec; IMAGE_SECTION_HEADER *pe_sec;
IMAGE_DATA_DIRECTORY *dir; IMAGE_DATA_DIRECTORY *dir;
BY_HANDLE_FILE_INFORMATION bhfi;
int i, rawsize, lowest_va, vma_size, file_size = 0; int i, rawsize, lowest_va, vma_size, file_size = 0;
DWORD load_addr = 0, aoep, reloc = 0; DWORD load_addr = 0, aoep, reloc = 0;
// struct get_read_fd_request *req = get_req_buffer(); // struct get_read_fd_request *req = get_req_buffer();
...@@ -717,10 +716,6 @@ WINE_MODREF *PE_CreateModule( HMODULE hModule, ...@@ -717,10 +716,6 @@ WINE_MODREF *PE_CreateModule( HMODULE hModule,
IMAGE_EXPORT_DIRECTORY *pe_export = NULL; IMAGE_EXPORT_DIRECTORY *pe_export = NULL;
IMAGE_RESOURCE_DIRECTORY *pe_resource = NULL; IMAGE_RESOURCE_DIRECTORY *pe_resource = NULL;
WINE_MODREF *wm; WINE_MODREF *wm;
int result;
dir = nt->OptionalHeader.DataDirectory+IMAGE_DIRECTORY_ENTRY_EXPORT; dir = nt->OptionalHeader.DataDirectory+IMAGE_DIRECTORY_ENTRY_EXPORT;
if (dir->Size) if (dir->Size)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment