Mercurial > mplayer.hg
changeset 26454:593921728191
Fix potential segfault in debug printf in expSetFilePointer
Patch by Gianluigi Tiesi
author | rtogni |
---|---|
date | Mon, 21 Apr 2008 20:58:20 +0000 |
parents | 220fb3934b88 |
children | 4d9fad055ac9 |
files | loader/win32.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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) {