mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-02 03:01:08 +00:00
Corrected NRE in WindowInfo.ToString functions, when referring to non-existent parent.
This commit is contained in:
parent
a2f5fa396f
commit
3974dbde8e
|
@ -32,7 +32,7 @@ namespace OpenTK.Platform.Windows
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return String.Format("Windows.WindowInfo: Handle {0}{1} Parent {2}",
|
return String.Format("Windows.WindowInfo: Handle {0}{1} Parent {2}",
|
||||||
this.Handle, System.Environment.NewLine, this.Parent.ToString());
|
this.Handle, System.Environment.NewLine, this.Parent != null ? this.Parent.ToString() : "null");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace OpenTK.Platform.X11
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return String.Format("X11.WindowInfo: Display {0}, Screen {1}, Handle {2}{3} Parent {4}",
|
return String.Format("X11.WindowInfo: Display {0}, Screen {1}, Handle {2}{3} Parent {4}",
|
||||||
this.Display, this.Screen, this.Handle, System.Environment.NewLine, this.Parent.ToString());
|
this.Display, this.Screen, this.Handle, System.Environment.NewLine, this.Parent != null ? this.Parent.ToString() : "null");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue