Skip to content

Commit 8066389

Browse files
committed
marshall lpExeName as LPTStr
1 parent 2e151fb commit 8066389

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

FlashpointSecurePlayer/Shared.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,12 @@ public struct PROCESSENTRY32 {
700700

701701
[DllImport("KERNEL32.DLL", SetLastError = true, CharSet = CharSet.Auto)]
702702
[return: MarshalAs(UnmanagedType.Bool)]
703-
public static extern bool QueryFullProcessImageName(IntPtr hProcess, int dwFlags, StringBuilder lpExeName, ref int lpdwSize);
703+
public static extern bool QueryFullProcessImageName(IntPtr hProcess, int dwFlags,
704+
705+
[MarshalAs(UnmanagedType.LPTStr)]
706+
StringBuilder lpExeName,
707+
708+
ref int lpdwSize);
704709

705710
[DllImport("KERNEL32.DLL", SetLastError = true)]
706711
public static extern IntPtr LocalFree(IntPtr hMem);

0 commit comments

Comments
 (0)