Fixed bug in handling of Guid field

pull/83/head
David Hall 2019-08-15 00:16:47 -07:00
parent a23ac2d587
commit 9b433ba34c
1 changed files with 7 additions and 6 deletions

View File

@ -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;
} }
}
} }
} }