[CRT]
authorThomas Faber <thomas.faber@reactos.org>
Sun, 5 Feb 2012 15:47:41 +0000 (15:47 +0000)
committerThomas Faber <thomas.faber@reactos.org>
Sun, 5 Feb 2012 15:47:41 +0000 (15:47 +0000)
- Fix multiple free in msvcrt_free_io. Fixes VLC Player crash on exit. Wine already has it right.

svn path=/trunk/; revision=55430

reactos/lib/sdk/crt/stdio/file.c

index 9c5a49d..e3e4e2c 100644 (file)
@@ -966,7 +966,7 @@ void msvcrt_free_io(void)
             free(__pioinfo[i]);
 
     for(i=0; i<sizeof(fstream)/sizeof(fstream[0]); i++)
-            free(fstream[i/FD_BLOCK_SIZE]);
+            free(fstream[i]);
 
     file_cs.DebugInfo->Spare[0] = 0;
     DeleteCriticalSection(&file_cs);