mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
Mayaqua/Pack: Fix PackGetStrSize() and PackGetStrSizeEx()'s return data type
The bug caused ProtoOptionsGet and ProtoOptionsSet not to work anymore after c90617e0e86dedf78e0e3c8a71263a80eec29caa.
The functions were introduced in aa65327e73
, but the issue went unnoticed because bool was the same as UINT.
This commit is contained in:
@ -1430,11 +1430,11 @@ bool PackGetStrEx(PACK *p, char *name, char *str, UINT size, UINT index)
|
||||
}
|
||||
|
||||
// Get the string size from the PACK
|
||||
bool PackGetStrSize(PACK *p, char *name)
|
||||
UINT PackGetStrSize(PACK *p, char *name)
|
||||
{
|
||||
return PackGetStrSizeEx(p, name, 0);
|
||||
}
|
||||
bool PackGetStrSizeEx(PACK *p, char *name, UINT index)
|
||||
UINT PackGetStrSizeEx(PACK *p, char *name, UINT index)
|
||||
{
|
||||
ELEMENT *e;
|
||||
// Validate arguments
|
||||
|
Reference in New Issue
Block a user