Browse Source

Win32: stop stacktrace on bad pointer

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
pull/24/head
Hannes Domani 12 years ago
committed by Jean-Baptiste Kempf
parent
commit
7e92a49276
  1. 3
      bin/winvlc.c

3
bin/winvlc.c

@ -356,6 +356,9 @@ LONG WINAPI vlc_exception_filter(struct _EXCEPTION_POINTERS *lpExceptionInfo)
GetModuleFileName( mbi.AllocationBase, module, 256 ); GetModuleFileName( mbi.AllocationBase, module, 256 );
fwprintf( fd, L"%p|%ls\n", caller, module ); fwprintf( fd, L"%p|%ls\n", caller, module );
if( IsBadReadPtr( pBase, 2 * sizeof( void* ) ) )
break;
/*The last BP points to NULL!*/ /*The last BP points to NULL!*/
caller = *(pBase + 1); caller = *(pBase + 1);
if( !caller ) if( !caller )

Loading…
Cancel
Save