mirror of
https://github.com/mirror/processhacker
synced 2026-06-08 16:03:24 +00:00
Updated Managed plugin wrapper:
-fixed PhPluginInformation passing 8bit byte instead of 1bit (C BOOLEAN Type) byte git-svn-id: svn://svn.code.sf.net/p/processhacker/code@4188 21ef857c-d57f-4fe0-8362-d861dc6d29cd
This commit is contained in:
@@ -218,9 +218,11 @@ namespace ProcessHacker.Api
|
||||
public void* DisplayName;
|
||||
public void* Author;
|
||||
public void* Description;
|
||||
public void* Url;
|
||||
public byte HasOptions;
|
||||
public fixed byte Reserved1[3];
|
||||
public void* Url;
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
public bool HasOptions;
|
||||
[MarshalAs(UnmanagedType.I1)]
|
||||
public fixed bool Reserved1[3];
|
||||
}
|
||||
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace ProcessHacker.Api
|
||||
info->Author = (void*)Marshal.StringToHGlobalUni(author);
|
||||
info->Description = (void*)Marshal.StringToHGlobalUni(description);
|
||||
info->Url = (void*)Marshal.StringToHGlobalUni(url);
|
||||
info->HasOptions = hasOptions ? (byte)1 : (byte)0;
|
||||
info->HasOptions = hasOptions;
|
||||
|
||||
return new PluginInstance(plugin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user