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
2 changed files with 7 additions and 1 deletions
|
@ -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>
|
2004-03-31 Miguel de Icaza <miguel@ximian.com>
|
||||||
|
|
||||||
* configure.in: If monodoc is not found, then turn off
|
* configure.in: If monodoc is not found, then turn off
|
||||||
|
|
|
@ -589,7 +589,8 @@ namespace GLib {
|
||||||
{
|
{
|
||||||
// FIXME: Insert an appropriate exception here if
|
// FIXME: Insert an appropriate exception here if
|
||||||
// _val.type indicates an error.
|
// _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")]
|
[DllImport("libgobject-2.0-0.dll")]
|
||||||
|
|
Loading…
Add table
Reference in a new issue