From f38aaca6142b528d1d844375aa89f3b6c1f0eecd Mon Sep 17 00:00:00 2001 From: Shawn Hoffman Date: Fri, 13 Nov 2009 01:19:43 +0000 Subject: [PATCH] apply deathknight13579's other changes from issue 1630 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4550 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp index 71a3a1593c..a977bb763b 100644 --- a/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp +++ b/Source/Core/DolphinWX/Src/ARCodeAddEdit.cpp @@ -116,8 +116,8 @@ void CARCodeAddEdit::SaveCheatData(wxCommandEvent& WXUNUSED (event)) if (pieces.size() == 2 && pieces[0].size() == 8 && pieces[1].size() == 8) { - u32 addr = strtol(pieces[0].c_str(), NULL, 16); - u32 value = strtol(pieces[1].c_str(), NULL, 16); + u32 addr = strtoul(pieces[0].c_str(), NULL, 16); + u32 value = strtoul(pieces[1].c_str(), NULL, 16); // Decrypted code tempEntries.push_back(ActionReplay::AREntry(addr, value)); }