瀏覽代碼

Bug 密码验证中,点击取消后,依然通过了密码验证。

MaiXinRong 9 年之前
父節點
當前提交
86a8f0fc91
共有 1 個文件被更改,包括 7 次插入3 次删除
  1. 7 3
      Units/ProjectData.pas

+ 7 - 3
Units/ProjectData.pas

@@ -1175,10 +1175,14 @@ var
 begin
   if ProjProperties.UnlockInfoPassword = '' then
     Result := True
-  else if InputPassword(sPassword) then
+  else
   begin
-    Result := sPassword = ProjProperties.UnlockInfoPassword;
-    if not Result then ErrorMessage('您输入的密码不正确!');
+    Result := InputPassword(sPassword);
+    if Result then
+    begin
+      Result := sPassword = ProjProperties.UnlockInfoPassword;
+      if not Result then ErrorMessage('您输入的密码不正确!');
+    end;
   end;
 end;