[PATCH] winedevice: Use 64-bit wide delta when relocating

alex.pigna at inventati.org alex.pigna at inventati.org
Tue Jun 22 20:31:23 CDT 2010


Hi Everyone,

when using Wine64 relocations should use 64-bit wide deltas, winedevice was 
not compliant with this. Patch follows

Regards,
Alessandro Pignotti

---
 programs/winedevice/device.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/programs/winedevice/device.c b/programs/winedevice/device.c
index e0cd07b..1b5b87a 100644
--- a/programs/winedevice/device.c
+++ b/programs/winedevice/device.c
@@ -67,7 +67,8 @@ static HMODULE load_driver_module( const WCHAR *name )
     IMAGE_NT_HEADERS *nt;
     const IMAGE_IMPORT_DESCRIPTOR *imports;
     size_t page_size = getpagesize();
-    int i, delta;
+    int i;
+    intptr_t delta;
     ULONG size;
     HMODULE module = LoadLibraryW( name );
 
-- 
1.7.1




More information about the wine-devel mailing list