# HG changeset patch # User rtogni # Date 1208811500 0 # Node ID 5939217281910fb210b3a231575d5903b555774f # Parent 220fb3934b8819edeea2f0ef98d6b194a845c92e Fix potential segfault in debug printf in expSetFilePointer Patch by Gianluigi Tiesi diff -r 220fb3934b88 -r 593921728191 loader/win32.c --- a/loader/win32.c Mon Apr 21 16:20:45 2008 +0000 +++ b/loader/win32.c Mon Apr 21 20:58:20 2008 +0000 @@ -3666,7 +3666,7 @@ static DWORD WINAPI expSetFilePointer(HANDLE h, LONG val, LPLONG ext, DWORD whence) { int wh; - dbgprintf("SetFilePointer(%d, 0x%x, 0x%x = %d, %d)\n", h, val, ext, *ext, whence); + dbgprintf("SetFilePointer(%d, 0x%x, 0x%x = %d, %d)\n", h, val, ext, ext ? *ext : NULL, whence); //why would DLL want temporary file with >2Gb size? switch(whence) {