1
1
Fork 0
mirror of https://github.com/pbatard/rufus.git synced 2024-08-14 23:57:05 +00:00

[perf] Hint compiler to inline compute strlen

Add const modifier to buffers - better hint for
compiler to inline buffer size instead of
computing strlen in runtime.
This commit is contained in:
Tsarevich Dmitry 2020-02-23 20:16:12 +03:00
parent 09cb8aceba
commit f4b006bc0c
No known key found for this signature in database
GPG key ID: E3C61298FF5B1274

View file

@ -250,8 +250,8 @@ static void ToValidLabel(char* Label, BOOL bFAT)
{
size_t i, j, k;
BOOL found;
WCHAR unauthorized[] = L"*?,;:/\\|+=<>[]\"";
WCHAR to_underscore[] = L"\t.";
const WCHAR unauthorized[] = L"*?,;:/\\|+=<>[]\"";
const WCHAR to_underscore[] = L"\t.";
WCHAR *wLabel = utf8_to_wchar(Label);
if (wLabel == NULL)