[io-layer] Extract socket (#4241)
[mono.git] / mono / metadata / icall.c
index 477a30a99c87a8b29019695440385fd38736d71f..322f77805abe1a15e84d59d892e0b9161923da9b 100644 (file)
@@ -49,7 +49,7 @@
 #include <mono/metadata/file-io.h>
 #include <mono/metadata/console-io.h>
 #include <mono/metadata/mono-route.h>
-#include <mono/metadata/socket-io.h>
+#include <mono/metadata/w32socket.h>
 #include <mono/metadata/mono-endian.h>
 #include <mono/metadata/tokentype.h>
 #include <mono/metadata/metadata-internals.h>
@@ -2796,7 +2796,7 @@ ves_icall_RuntimeTypeHandle_GetGenericTypeDefinition_impl (MonoReflectionTypeHan
        if (mono_class_is_ginst (klass)) {
                MonoClass *generic_class = mono_class_get_generic_class (klass)->container_class;
 
-               guint32 ref_info_handle = mono_class_get_ref_info_handle (klass);
+               guint32 ref_info_handle = mono_class_get_ref_info_handle (generic_class);
                
                if (generic_class->wastypebuilder && ref_info_handle) {
                        MonoObjectHandle tb = mono_gchandle_get_target_handle (ref_info_handle);