diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2014-05-13 13:16:26 -0700 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2014-09-09 16:39:36 -0700 |
commit | cd6a5a1db0120198a44c2743a39eee21f9d6f4f2 (patch) | |
tree | ff7c576e376426f1e53272aa26ae53d7b683f8dd /platform/winrt/gsview/ghostsharp.cs | |
parent | 2f0a47c6b93bd3935a0f4fad0dfb87149685485b (diff) | |
download | mupdf-cd6a5a1db0120198a44c2743a39eee21f9d6f4f2.tar.xz |
Add Drag-n-drop, Fix a few crashes. Clean up code.
Diffstat (limited to 'platform/winrt/gsview/ghostsharp.cs')
-rw-r--r-- | platform/winrt/gsview/ghostsharp.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/platform/winrt/gsview/ghostsharp.cs b/platform/winrt/gsview/ghostsharp.cs index 83f8c096..f8b7c14c 100644 --- a/platform/winrt/gsview/ghostsharp.cs +++ b/platform/winrt/gsview/ghostsharp.cs @@ -3,7 +3,8 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; -using System.Threading.Tasks;using System.Runtime.InteropServices; +//using System.Threading.Tasks; +using System.Runtime.InteropServices; using System.IO; using System.Security; using System.ComponentModel; @@ -1169,7 +1170,7 @@ namespace gsview if (si.processorArchitecture == 0) // zero means x86 return false; bool result; - /* Check process */ + if (!IsWow64Process(GetCurrentProcess(), out result)) throw new InvalidOperationException(); return !result; |