mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-08 16:03:21 +02:00
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:
parent
463618c958
commit
c5585dfd78
@ -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>
|
2005-06-08 Mike Kestner <mkestner@novell.com>
|
||||||
|
|
||||||
* generator/SimpleBase.cs : off-by-one in namespace join.
|
* generator/SimpleBase.cs : off-by-one in namespace join.
|
||||||
|
@ -42,6 +42,8 @@ namespace GLib {
|
|||||||
|
|
||||||
public static string FilenamePtrToString (IntPtr ptr)
|
public static string FilenamePtrToString (IntPtr ptr)
|
||||||
{
|
{
|
||||||
|
if (ptr == IntPtr.Zero) return null;
|
||||||
|
|
||||||
IntPtr dummy, error;
|
IntPtr dummy, error;
|
||||||
IntPtr utf8 = g_filename_to_utf8 (ptr, -1, IntPtr.Zero, out dummy, out error);
|
IntPtr utf8 = g_filename_to_utf8 (ptr, -1, IntPtr.Zero, out dummy, out error);
|
||||||
if (error != IntPtr.Zero)
|
if (error != IntPtr.Zero)
|
||||||
|
Loading…
Reference in New Issue
Block a user