[MPlayer-cvslog] r21262 - trunk/loader/ext.c

reimar subversion at mplayerhq.hu
Sun Nov 26 14:02:03 CET 2006


Author: reimar
Date: Sun Nov 26 14:02:02 2006
New Revision: 21262

Modified:
   trunk/loader/ext.c

Log:
Fix loader code: closed .dll file handles when it should not


Modified: trunk/loader/ext.c
==============================================================================
--- trunk/loader/ext.c	(original)
+++ trunk/loader/ext.c	Sun Nov 26 14:02:02 2006
@@ -369,7 +369,7 @@
     else
         answer=mmap(NULL, len, mmap_access, MAP_PRIVATE, hFile, 0);
 
-    if(hFile != -1)
+    if(anon && hFile != -1)
         close(hFile);
     if(answer!=(LPVOID)-1)
     {
@@ -395,7 +395,7 @@
 	    fm->name=NULL;
 	fm->mapping_size=len;
 
-	if(hFile != -1)
+	if(anon && hFile != -1)
 	    close(hFile);
 	return (HANDLE)answer;
     }



More information about the MPlayer-cvslog mailing list