Revert "[runtime] Fix the computation of token sizes in ppdb files, the PDB stream...
[mono.git] / mono / metadata / icall-windows.c
index 9ebcf30f31b5f2f2bbb85b1e1515f08d255b8b54..05e4ccf97374d36db769e0952af9f2f0ca60216a 100644 (file)
@@ -35,10 +35,11 @@ mono_icall_get_file_path_prefix (const gchar *path)
 }
 
 gpointer
-mono_icall_module_get_hinstance (MonoReflectionModule *module)
+mono_icall_module_get_hinstance (MonoReflectionModuleHandle module)
 {
-       if (module->image && module->image->is_module_handle)
-               return module->image->raw_data;
+       MonoImage *image = MONO_HANDLE_GETVAL (module, image);
+       if (image && image->is_module_handle)
+               return image->raw_data;
 
        return (gpointer) (-1);
 }