mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 21:30:19 -06:00
Make PatchAddEdit complain and not modify entry if fields are invalid instead of just filling in zeros. Fixes issue 4291.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@7672 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -130,6 +130,9 @@ bool TryParse(const std::string &str, u32 *const output)
|
||||
if (!endptr || *endptr)
|
||||
return false;
|
||||
|
||||
if (value == ULONG_MAX && errno == ERANGE)
|
||||
return false;
|
||||
|
||||
*output = value;
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user