mirror of https://github.com/dahall/Vanara.git
Fixed bug in handling of Guid field
parent
a23ac2d587
commit
9b433ba34c
|
@ -50,17 +50,18 @@ namespace Vanara.PInvoke
|
||||||
{
|
{
|
||||||
Sbz = 0;
|
Sbz = 0;
|
||||||
this.level = level;
|
this.level = level;
|
||||||
if (objType == default)
|
unsafe
|
||||||
guidObjectType = null;
|
|
||||||
else
|
|
||||||
{
|
{
|
||||||
unsafe
|
if (objType == default)
|
||||||
{
|
fixed (Guid* pGuid = &Guid.Empty)
|
||||||
|
{
|
||||||
|
guidObjectType = pGuid;
|
||||||
|
}
|
||||||
|
else
|
||||||
fixed (Guid* pGuid = &objType)
|
fixed (Guid* pGuid = &objType)
|
||||||
{
|
{
|
||||||
guidObjectType = pGuid;
|
guidObjectType = pGuid;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue