mirror of
https://github.com/Ryujinx/Opentk.git
synced 2024-12-25 02:25:34 +00:00
Fixed a possible NRE (raised with Glu)
This commit is contained in:
parent
baf9b4d648
commit
53e9f7cc67
|
@ -264,7 +264,8 @@ namespace Bind.Structures
|
|||
Pointer = false;
|
||||
WrapperType = WrapperTypes.None;
|
||||
}
|
||||
else if (CurrentType.ToLower().Contains("void") || PreviousType.ToLower().Contains("void")) /*|| CurrentType.Contains("IntPtr"))*/
|
||||
else if (CurrentType.ToLower().Contains("void") ||
|
||||
(!String.IsNullOrEmpty(PreviousType) && PreviousType.ToLower().Contains("void"))) /*|| CurrentType.Contains("IntPtr"))*/
|
||||
{
|
||||
CurrentType = "IntPtr";
|
||||
Pointer = false;
|
||||
|
@ -273,7 +274,7 @@ namespace Bind.Structures
|
|||
}
|
||||
|
||||
if (Reference)
|
||||
WrapperType = WrapperTypes.ReferenceParameter;
|
||||
WrapperType |= WrapperTypes.ReferenceParameter;
|
||||
|
||||
// This causes problems with bool arrays
|
||||
//if (CurrentType.ToLower().Contains("bool"))
|
||||
|
|
Loading…
Reference in a new issue