diff options
| author | Ladislav Zezula <zezula@volny.cz> | 2025-10-11 09:07:22 +0200 |
|---|---|---|
| committer | Ladislav Zezula <zezula@volny.cz> | 2025-10-11 09:07:22 +0200 |
| commit | b62de3c83fc146c4e8a05bde15d39e19588c28a4 (patch) | |
| tree | 7bf081d5c6f342b304abc576f5ed380037800b3e /src | |
| parent | d1aef907ffd8ea6f6ce04c5495b1cd350afc932a (diff) | |
Fixed issue #400
Diffstat (limited to 'src')
| -rw-r--r-- | src/StormCommon.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/StormCommon.h b/src/StormCommon.h index 7f71452..cefb92c 100644 --- a/src/StormCommon.h +++ b/src/StormCommon.h @@ -239,8 +239,8 @@ DWORD SMemStrToBin(const XCHAR * szString, void * pvBinary, size_t cbBinary, siz BYTE StringByte0 = (BYTE)szString[0];
BYTE StringByte1 = (BYTE)szString[1];
- // Each character must be within the range of 0x80
- if(StringByte0 > 0x80 || StringByte1 > 0x80)
+ // Each character must be within the range of 0x00-0x7F
+ if(StringByte0 >= 0x80 || StringByte1 >= 0x80)
return ERROR_INVALID_PARAMETER;
if(SMemCharToByte[StringByte0] == 0xFF || SMemCharToByte[StringByte1] == 0xFF)
return ERROR_INVALID_PARAMETER;
|
