OSDN Git Service

Fix bugs of process protection.
authors_kawamoto <s_kawamoto@users.sourceforge.jp>
Fri, 1 Jun 2012 10:29:17 +0000 (19:29 +0900)
committers_kawamoto <s_kawamoto@users.sourceforge.jp>
Fri, 1 Jun 2012 10:29:17 +0000 (19:29 +0900)
FFFTP_Eng_Release/FFFTP.exe
Release/FFFTP.exe
protectprocess.c

index 86b801c..15e11ea 100644 (file)
Binary files a/FFFTP_Eng_Release/FFFTP.exe and b/FFFTP_Eng_Release/FFFTP.exe differ
index 03880b8..e6c614d 100644 (file)
Binary files a/Release/FFFTP.exe and b/Release/FFFTP.exe differ
index b5a271e..ee5f1c3 100644 (file)
@@ -705,12 +705,12 @@ BOOL IsModuleTrusted(LPCWSTR Filename)
                }\r
                if(!bResult)\r
                {\r
-                       if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SIDE_BY_SIDE) && IsSxsModuleTrusted(Filename))\r
+                       if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SYSTEM_FILE) && SfcIsFileProtected(NULL, Filename))\r
                                bResult = TRUE;\r
                }\r
                if(!bResult)\r
                {\r
-                       if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SYSTEM_FILE) && SfcIsFileProtected(NULL, Filename))\r
+                       if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SIDE_BY_SIDE) && IsSxsModuleTrusted(Filename))\r
                                bResult = TRUE;\r
                }\r
                UnlockThreadLock();\r