From 454f94b2476d8fa3d9305bc8f686b0eb9d43a54c Mon Sep 17 00:00:00 2001 From: tomvita <68505331+tomvita@users.noreply.github.com> Date: Tue, 6 Dec 2022 19:18:45 +0800 Subject: [PATCH] upload bookmark with label with either offset from main or full address --- PointerSearcher/Form1.Designer.cs | 2 +- PointerSearcher/Form1.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/PointerSearcher/Form1.Designer.cs b/PointerSearcher/Form1.Designer.cs index 814ce48..449b338 100644 --- a/PointerSearcher/Form1.Designer.cs +++ b/PointerSearcher/Form1.Designer.cs @@ -2087,7 +2087,7 @@ private void InitializeComponent() this.Controls.Add(this.pictureBox2); this.Controls.Add(this.groupBox4); this.Name = "Form1"; - this.Text = "PointerSearcher SE 0.5.15a"; + this.Text = "PointerSearcher SE 0.5.15b"; this.Load += new System.EventHandler(this.Form1_Load); ((System.ComponentModel.ISupportInitialize)(this.dgvDumpTargets)).EndInit(); this.tabControl1.ResumeLayout(false); diff --git a/PointerSearcher/Form1.cs b/PointerSearcher/Form1.cs index 5261d0b..2ae2f9a 100644 --- a/PointerSearcher/Form1.cs +++ b/PointerSearcher/Form1.cs @@ -2466,7 +2466,7 @@ private void prepareASM() continue; } BM.BaseStream.Seek( 135 + bookmark_count * ( 4 + 100 ), SeekOrigin.Begin ); // u32 offset; char * label[100] Edizon header size = 135 - BM.Write( Convert.ToInt32( dgvDumpTargets.Rows[i].Cells[7].Value.ToString().Replace( " ", "" ), 16 ) ); + BM.Write( Convert.ToInt64( dgvDumpTargets.Rows[i].Cells[7].Value.ToString().Replace( " ", "" ), 16 ) ); BM.Write( dgvDumpTargets.Rows[i].Cells[10].Value.ToString() ); //= "address"; bookmark_count++; @@ -2508,7 +2508,7 @@ private void prepareASM() //} BM.BaseStream.Seek( 5, SeekOrigin.Begin ); - BM.Write( bookmark_count * ( 4 + 100 ) ); + BM.Write( bookmark_count * ( 8 + 100 ) ); BM.BaseStream.Close(); } catch ( IOException ) { txtPointerSearchResults.Text = "Cannot create file"; }