Browse Source

GUI: diagnostic tool cosmetic changes

Herman Schoenfeld 6 years ago
parent
commit
7a28e45f6f
2 changed files with 39 additions and 2 deletions
  1. 4 1
      src/gui-classic/UFRMDiagnosticTool.pas
  2. 35 1
      src/pascalcoin_wallet_classic.dproj

+ 4 - 1
src/gui-classic/UFRMDiagnosticTool.pas

@@ -153,7 +153,10 @@ var
   LNonce : UInt32;
   LNonce : UInt32;
   LLen : Integer;
   LLen : Integer;
 begin
 begin
-  Result := Copy(AHeader);
+  if Length(AHeader) < 4 then
+    Result := TBytes.Create(0,0,0,0)
+  else
+    Result := Copy(AHeader);
   LNonce := Random(MaxInt);
   LNonce := Random(MaxInt);
   // If digest not big enough to contain a nonce, just return the clone
   // If digest not big enough to contain a nonce, just return the clone
   LLen := Length(Result);
   LLen := Length(Result);

+ 35 - 1
src/pascalcoin_wallet_classic.dproj

@@ -274,7 +274,6 @@
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                     </Platform>
                     </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
-                        <RemoteDir>Contents\MacOS</RemoteDir>
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                     </Platform>
                     </Platform>
                 </DeployClass>
                 </DeployClass>
@@ -410,6 +409,11 @@
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                         <Extensions>.framework</Extensions>
                         <Extensions>.framework</Extensions>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\MacOS</RemoteDir>
+                        <Operation>1</Operation>
+                        <Extensions>.framework</Extensions>
+                    </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                     </Platform>
                     </Platform>
@@ -432,6 +436,11 @@
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                         <Extensions>.dylib</Extensions>
                         <Extensions>.dylib</Extensions>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\MacOS</RemoteDir>
+                        <Operation>1</Operation>
+                        <Extensions>.dylib</Extensions>
+                    </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                         <Extensions>.dll;.bpl</Extensions>
                         <Extensions>.dll;.bpl</Extensions>
@@ -455,6 +464,11 @@
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                         <Extensions>.dylib</Extensions>
                         <Extensions>.dylib</Extensions>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\MacOS</RemoteDir>
+                        <Operation>1</Operation>
+                        <Extensions>.dylib</Extensions>
+                    </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                         <Extensions>.bpl</Extensions>
                         <Extensions>.bpl</Extensions>
@@ -477,6 +491,10 @@
                         <RemoteDir>Contents\Resources\StartUp\</RemoteDir>
                         <RemoteDir>Contents\Resources\StartUp\</RemoteDir>
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\Resources\StartUp\</RemoteDir>
+                        <Operation>0</Operation>
+                    </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                     </Platform>
                     </Platform>
@@ -624,18 +642,30 @@
                         <RemoteDir>..\</RemoteDir>
                         <RemoteDir>..\</RemoteDir>
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>..\</RemoteDir>
+                        <Operation>1</Operation>
+                    </Platform>
                 </DeployClass>
                 </DeployClass>
                 <DeployClass Name="ProjectOSXInfoPList">
                 <DeployClass Name="ProjectOSXInfoPList">
                     <Platform Name="OSX32">
                     <Platform Name="OSX32">
                         <RemoteDir>Contents</RemoteDir>
                         <RemoteDir>Contents</RemoteDir>
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents</RemoteDir>
+                        <Operation>1</Operation>
+                    </Platform>
                 </DeployClass>
                 </DeployClass>
                 <DeployClass Name="ProjectOSXResource">
                 <DeployClass Name="ProjectOSXResource">
                     <Platform Name="OSX32">
                     <Platform Name="OSX32">
                         <RemoteDir>Contents\Resources</RemoteDir>
                         <RemoteDir>Contents\Resources</RemoteDir>
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\Resources</RemoteDir>
+                        <Operation>1</Operation>
+                    </Platform>
                 </DeployClass>
                 </DeployClass>
                 <DeployClass Required="true" Name="ProjectOutput">
                 <DeployClass Required="true" Name="ProjectOutput">
                     <Platform Name="Android">
                     <Platform Name="Android">
@@ -658,6 +688,10 @@
                         <RemoteDir>Contents\MacOS</RemoteDir>
                         <RemoteDir>Contents\MacOS</RemoteDir>
                         <Operation>1</Operation>
                         <Operation>1</Operation>
                     </Platform>
                     </Platform>
+                    <Platform Name="OSX64">
+                        <RemoteDir>Contents\MacOS</RemoteDir>
+                        <Operation>1</Operation>
+                    </Platform>
                     <Platform Name="Win32">
                     <Platform Name="Win32">
                         <Operation>0</Operation>
                         <Operation>0</Operation>
                     </Platform>
                     </Platform>