[MPlayer-cvslog] r26486 - trunk/loader/win32.c

rtogni subversion at mplayerhq.hu
Mon Apr 21 22:58:20 CEST 2008


Author: rtogni
Date: Mon Apr 21 22:58:20 2008
New Revision: 26486

Log:
Fix potential segfault in debug printf in expSetFilePointer
Patch by Gianluigi Tiesi


Modified:
   trunk/loader/win32.c

Modified: trunk/loader/win32.c
==============================================================================
--- trunk/loader/win32.c	(original)
+++ trunk/loader/win32.c	Mon Apr 21 22:58:20 2008
@@ -3666,7 +3666,7 @@ static WIN_BOOL WINAPI expWriteFile(HAND
 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)
     {



More information about the MPlayer-cvslog mailing list