mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2026-10-22 01:51:20 +03:00
Use bool from stdbool.h, get rid of BOOL
BOOL was just an alias for bool, this commit replaces all instances of it for consistency.
For some reason bool was defined as a 4-byte integer instead of a 1-byte one, presumably to match WinAPI's definition: https://docs.microsoft.com/en-us/windows/win32/winprog/windows-data-types
Nothing should break now that bool is 1-byte, as no protocol code appears to be relying on the size of the data type.
PACK, for example, explicitly stores boolean values as 4-byte integers.
This commit can be seen as a follow-up to 61ccaed4f6.
This commit is contained in:
1 parent
7f30cbccf4
commit
914bfe7d44
9 files changed
+6
-27
No files matched your search
+1
-1
@@ -23025,7 +23025,7 @@ void CtEscapeCsv(wchar_t *dst, UINT size, wchar_t *src){
|
||||
UINT i;
|
||||
UINT len = UniStrLen(src);
|
||||
UINT idx;
|
||||
BOOL need_to_escape = false;
|
||||
bool need_to_escape = false;
|
||||
wchar_t tmp[2]=L"*";
|
||||
|
||||
// Check the input value
|
||||
|
||||
Reference in new issue
Block a user