[Mplayer-cvslog] CVS: main/loader win32.c,1.16,1.17

Arpi of Ize arpi at mplayer.dev.hu
Thu Aug 16 02:43:31 CEST 2001


Update of /cvsroot/mplayer/main/loader
In directory mplayer:/var/tmp.root/cvs-serv15101

Modified Files:
	win32.c 
Log Message:
UnregisterComClass added

Index: win32.c
===================================================================
RCS file: /cvsroot/mplayer/main/loader/win32.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- win32.c	29 Jul 2001 16:44:37 -0000	1.16
+++ win32.c	16 Aug 2001 00:43:28 -0000	1.17
@@ -225,6 +225,8 @@
     printf("Allocated %d bytes of memory: sys %d, user %d-%d\n", size, heap_counter-8, heap_counter, heap_counter+size);
     if(to_zero)
     	memset(heap+heap_counter, 0, size);	    
+    else
+      memset(heap+heap_counter, 0xcc, size);
     heap_counter+=size;
     return heap+heap_counter-size;	
 }
@@ -2504,6 +2506,57 @@
 	return retval;
 }
 
+int WINAPI expUnknownMFC42_1176() /* exact number of arguments unknown */
+{
+    dbgprintf("MFC42:1176\n");
+    return 0;
+}
+
+int WINAPI expUnknownMFC42_1243() /* exact number of arguments unknown */
+{
+    dbgprintf("MFC42:1243\n");
+    return 0;
+}
+
+int UnregisterComClass(GUID* clsid, GETCLASSOBJECT gcs)
+{
+    int found = 0;
+    int i = 0;
+    if(!clsid || !gcs)
+	return -1;
+
+    if (com_object_table == 0)
+	printf("Warning: UnregisterComClass() called without any registered class\n");
+    while (i < com_object_size)
+    {
+	if (found && i > 0)
+	{
+	    memcpy(&com_object_table[i - 1].clsid,
+		   &com_object_table[i].clsid, sizeof(GUID));
+	    com_object_table[i - 1].GetClassObject =
+		com_object_table[i].GetClassObject;
+	}
+	else if (memcmp(&com_object_table[i].clsid, clsid, sizeof(GUID)) == 0
+		 && com_object_table[i].GetClassObject == gcs)
+	{
+            found++;
+	}
+	i++;
+    }
+    if (found)
+    {
+	if (--com_object_size == 0)
+	{
+	    free(com_object_table);
+            com_object_table = 0;
+	}
+    }
+    return 0;
+}
+
+
+
+
 struct exports
 {
     char name[64];
@@ -2694,6 +2747,10 @@
 FF(CoCreateInstance, -1)
 FF(StringFromGUID2, -1)
 };
+struct exports exp_mfc42[]={
+FF(UnknownMFC42_1176, 1176)
+FF(UnknownMFC42_1243, 1243)
+};
 struct exports exp_crtdll[]={
 FF(memcpy, -1)
 };
@@ -2710,6 +2767,7 @@
 LL(gdi32)
 LL(version)
 LL(ole32)
+LL(mfc42)
 LL(crtdll)
 };
 




More information about the MPlayer-cvslog mailing list