X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Fw32handle-namespace.c;h=f45d2efae532dc9487ed5719201516f42a87acaa;hb=02155d6cebd7e06f7339c91efb343fbaaf4f36a7;hp=2eb2145533b6d804c6e285cc7848803e38e1e8cf;hpb=fee5ece80556eb45d16da5f6c0fde991e5af1d40;p=mono.git diff --git a/mono/metadata/w32handle-namespace.c b/mono/metadata/w32handle-namespace.c index 2eb2145533b..f45d2efae53 100644 --- a/mono/metadata/w32handle-namespace.c +++ b/mono/metadata/w32handle-namespace.c @@ -1,5 +1,6 @@ -/* - * w32handle-namespace.c: namespace for w32handles +/** + * \file + * namespace for w32handles * * Author: * Ludovic Henry (luhenry@microsoft.com) @@ -16,7 +17,6 @@ #include "w32mutex.h" #include "w32semaphore.h" #include "w32event.h" -#include "mono/io-layer/io-layer.h" #include "mono/utils/mono-logger-internals.h" #include "mono/utils/mono-coop-mutex.h" @@ -56,7 +56,7 @@ has_namespace (MonoW32HandleType type) typedef struct { gpointer ret; MonoW32HandleType type; - gchar *name; + const gchar *name; } NamespaceSearchHandleData; static gboolean @@ -91,9 +91,7 @@ mono_w32handle_namespace_search_handle_callback (gpointer handle, gpointer data, __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; @@ -103,7 +101,7 @@ mono_w32handle_namespace_search_handle_callback (gpointer handle, gpointer data, } gpointer -mono_w32handle_namespace_search_handle (MonoW32HandleType type, gchar *name) +mono_w32handle_namespace_search_handle (MonoW32HandleType type, const gchar *name) { NamespaceSearchHandleData search_data;