-/*
- * w32handle-namespace.c: namespace for w32handles
+/**
+ * \file
+ * namespace for w32handles
*
* Author:
* Ludovic Henry (luhenry@microsoft.com)
typedef struct {
gpointer ret;
MonoW32HandleType type;
- gchar *name;
+ const gchar *name;
} NamespaceSearchHandleData;
static gboolean
__func__, handle);
/* we do not want the handle to be destroyed before we return it */
- mono_w32handle_ref (handle);
-
- search_data->ret = handle;
+ search_data->ret = mono_w32handle_duplicate (handle);
}
return TRUE;
}
gpointer
-mono_w32handle_namespace_search_handle (MonoW32HandleType type, gchar *name)
+mono_w32handle_namespace_search_handle (MonoW32HandleType type, const gchar *name)
{
NamespaceSearchHandleData search_data;