FFFTPのソースコードです。
リビジョン | cf614476ea3f3a273cf0d5abbd4b213c099e057a (tree) |
---|---|
日時 | 2012-06-01 19:29:17 |
作者 | s_kawamoto <s_kawamoto@user...> |
コミッター | s_kawamoto |
Fix bugs of process protection.
@@ -705,12 +705,12 @@ BOOL IsModuleTrusted(LPCWSTR Filename) | ||
705 | 705 | } |
706 | 706 | if(!bResult) |
707 | 707 | { |
708 | - if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SIDE_BY_SIDE) && IsSxsModuleTrusted(Filename)) | |
708 | + if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SYSTEM_FILE) && SfcIsFileProtected(NULL, Filename)) | |
709 | 709 | bResult = TRUE; |
710 | 710 | } |
711 | 711 | if(!bResult) |
712 | 712 | { |
713 | - if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SYSTEM_FILE) && SfcIsFileProtected(NULL, Filename)) | |
713 | + if((g_ProcessProtectionLevel & PROCESS_PROTECTION_SIDE_BY_SIDE) && IsSxsModuleTrusted(Filename)) | |
714 | 714 | bResult = TRUE; |
715 | 715 | } |
716 | 716 | UnlockThreadLock(); |