Added a sanity check to the GotoAddress code, because some users have none.
This commit is contained in:
parent
b7fc64fe7e
commit
cbfd453bcd
|
@ -237,6 +237,8 @@ void GotoAddress(HWND hwnd) {
|
|||
{
|
||||
if(EOF != sscanf(gotoaddressstring, "%x", &gotoaddress))
|
||||
{
|
||||
if (gotoaddress < 0)
|
||||
gotoaddress = 0;
|
||||
if (gotoaddress > (MaxSize-1))
|
||||
gotoaddress = (MaxSize-1);
|
||||
CursorStartAddy = gotoaddress;
|
||||
|
|
Loading…
Reference in New Issue