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