2005-06-09 Lluis Sanchez <lluis@novell.com>

* glib/Marshaller.cs: Added null check in FilenamePtrToString.


svn path=/trunk/gtk-sharp/; revision=45706
This commit is contained in:
Lluis Sanchez 2005-06-09 14:52:24 +00:00
parent 463618c958
commit c5585dfd78
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2005-06-09 Lluis Sanchez <lluis@novell.com>
* glib/Marshaller.cs: Added null check in FilenamePtrToString.
2005-06-08 Mike Kestner <mkestner@novell.com>
* generator/SimpleBase.cs : off-by-one in namespace join.

View File

@ -42,6 +42,8 @@ namespace GLib {
public static string FilenamePtrToString (IntPtr ptr)
{
if (ptr == IntPtr.Zero) return null;
IntPtr dummy, error;
IntPtr utf8 = g_filename_to_utf8 (ptr, -1, IntPtr.Zero, out dummy, out error);
if (error != IntPtr.Zero)