mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2025-01-22 18:21:03 +00:00
2004-04-01 Mike Kestner <mkestner@ximian.com>
* glib/Value.cs : NULL check for g_value_get_string Thanks to Jeroen Zwartepoorte for the bug report with patch [fixes #54979]. svn path=/trunk/gtk-sharp/; revision=24910
This commit is contained in:
parent
65570cfc50
commit
f445ce3b19
|
@ -1,3 +1,8 @@
|
|||
2004-04-01 Mike Kestner <mkestner@ximian.com>
|
||||
|
||||
* glib/Value.cs : NULL check for g_value_get_string Thanks to Jeroen
|
||||
Zwartepoorte for the bug report with patch [fixes #54979].
|
||||
|
||||
2004-03-31 Miguel de Icaza <miguel@ximian.com>
|
||||
|
||||
* configure.in: If monodoc is not found, then turn off
|
||||
|
|
|
@ -589,7 +589,8 @@ namespace GLib {
|
|||
{
|
||||
// FIXME: Insert an appropriate exception here if
|
||||
// _val.type indicates an error.
|
||||
return Marshal.PtrToStringAnsi (g_value_get_string (val._val));
|
||||
IntPtr str = g_value_get_string (val._val);
|
||||
return str == IntPtr.Zero ? null : Marshal.PtrToStringAnsi (str);
|
||||
}
|
||||
|
||||
[DllImport("libgobject-2.0-0.dll")]
|
||||
|
|
Loading…
Reference in a new issue