diff options
author | midipix <writeonce@midipix.org> | 2017-10-18 03:34:23 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2017-10-19 18:18:47 -0400 |
commit | be94906a87cdad690a717d7eac3d08e591bd658a (patch) | |
tree | baf2723ef7c94270818adb3feacdff29055b737c /src/ldso | |
parent | a4c09ff2ed6d5211ce2d52a406070674fc68c291 (diff) | |
download | pemagine-be94906a87cdad690a717d7eac3d08e591bd658a.tar.bz2 pemagine-be94906a87cdad690a717d7eac3d08e591bd658a.tar.xz |
internals: pe_hex_utf16_to_uint32(): return OS_STATUS_INVALID_PARAMETER upon error.
Diffstat (limited to 'src/ldso')
-rw-r--r-- | src/ldso/pe_get_framework_runtime_data.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ldso/pe_get_framework_runtime_data.c b/src/ldso/pe_get_framework_runtime_data.c index ba9d903..1fabf40 100644 --- a/src/ldso/pe_get_framework_runtime_data.c +++ b/src/ldso/pe_get_framework_runtime_data.c @@ -31,7 +31,7 @@ static int32_t pe_hex_utf16_to_uint32( if (!((hex_key_utf16[i] >= 'a') && (hex_key_utf16[i] <= 'f'))) if (!((hex_key_utf16[i] >= 'A') && (hex_key_utf16[i] <= 'F'))) if (!((hex_key_utf16[i] >= '0') && (hex_key_utf16[i] <= '9'))) - return OS_STATUS_ILLEGAL_CHARACTER; + return OS_STATUS_INVALID_PARAMETER; /* intermediate step: little endian byte order */ uch[0] = (unsigned char)hex_key_utf16[6]; |