Browse Source

Fixed some FPC bugs

PascalCoin 6 years ago
parent
commit
017b0a460e
2 changed files with 2 additions and 2 deletions
  1. 1 1
      src/core/UNetProtocol.pas
  2. 1 1
      src/gui-classic/UFRMPascalCoinWalletConfig.pas

+ 1 - 1
src/core/UNetProtocol.pas

@@ -1792,7 +1792,7 @@ Const CT_LogSender = 'GetNewBlockChainFromClient';
       if (c>=safebox_blockscount) then c := safebox_blockscount-1;
       if (c>=safebox_blockscount) then c := safebox_blockscount-1;
       sendData.Write(c,SizeOf(c));
       sendData.Write(c,SizeOf(c));
       if (from_block>c) or (c>=safebox_blockscount) then begin
       if (from_block>c) or (c>=safebox_blockscount) then begin
-        errors := 'ERROR DEV 20170727-1';
+        errors := Format('ERROR DEV 20170727-1 fromblock:%d c:%d safebox_blockscount:%d',[from_block,c,safebox_blockscount]);
         Exit;
         Exit;
       end;
       end;
       if Connection.NetProtocolVersion.protocol_version<9 then begin
       if Connection.NetProtocolVersion.protocol_version<9 then begin

+ 1 - 1
src/gui-classic/UFRMPascalCoinWalletConfig.pas

@@ -148,7 +148,7 @@ end;
 procedure TFRMPascalCoinWalletConfig.bbOpenDataFolderClick(Sender: TObject);
 procedure TFRMPascalCoinWalletConfig.bbOpenDataFolderClick(Sender: TObject);
 begin
 begin
   {$IFDEF FPC}
   {$IFDEF FPC}
-  OpenDocument(pchar(TFolderHelper.GetPascalCoinDataFolder))
+  OpenDocument(pchar(TNode.GetPascalCoinDataFolder))
   {$ELSE}
   {$ELSE}
   shellexecute(0, 'open', pchar(TNode.GetPascalCoinDataFolder), nil, nil, SW_SHOW)
   shellexecute(0, 'open', pchar(TNode.GetPascalCoinDataFolder), nil, nil, SW_SHOW)
   {$ENDIF}
   {$ENDIF}