if (dataType.IsEnum())
{
dataType = Enum.GetUnderlyingType(dataType);
+ if (Runtime.InteropServices.Marshal.SizeOf(dataType) < sizeof(int))
+ dataType = typeof(int);
goto Again;
}
-
// Everything else is marshaled as a string.
// ETW strings are NULL-terminated, so marshal everything up to the first
// null in the string.
}
return new string((char *)dataPointer);
-
}
finally
{
}
}
- // the OS requrires that bitmaps and valuemaps have at least one value or it reject the whole manifest.
+ // the OS requires that bitmaps and valuemaps have at least one value or it reject the whole manifest.
// To avoid that put a 'None' entry if there are no other values.
if (!anyValuesWritten)
{