add some new error codes

maybe they don't belong here?? they are error codes for
the GAM.
This commit is contained in:
bunnie 2021-01-19 00:04:55 +08:00
parent 73286828c8
commit 82e7855b24

View file

@ -155,6 +155,8 @@ pub enum Error {
InvalidPID = 21,
UnknownError = 22,
AccessDenied = 23,
UseBeforeInit = 24,
DoubleFree = 25,
}
impl Error {
@ -184,6 +186,8 @@ impl Error {
20 => InvalidThread,
21 => InvalidPID,
23 => AccessDenied,
24 => UseBeforeInit,
25 => DoubleFree,
_ => UnknownError,
}
}
@ -213,6 +217,8 @@ impl Error {
InvalidThread => 20,
InvalidPID => 21,
AccessDenied => 23,
UseBeforeInit => 24,
DoubleFree => 25,
UnknownError => usize::MAX,
}
}