aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLadislav Zezula <zezula@volny.cz>2025-10-11 09:07:22 +0200
committerLadislav Zezula <zezula@volny.cz>2025-10-11 09:07:22 +0200
commitb62de3c83fc146c4e8a05bde15d39e19588c28a4 (patch)
tree7bf081d5c6f342b304abc576f5ed380037800b3e /src
parentd1aef907ffd8ea6f6ce04c5495b1cd350afc932a (diff)
Fixed issue #400
Diffstat (limited to 'src')
-rw-r--r--src/StormCommon.h4
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;