attrib: Avoid hardcoding the Unicode string literal lengths.
This commit is contained in:
parent
68bd1ae628
commit
cf598bdd62
|
@ -126,7 +126,7 @@ int wmain(int argc, WCHAR *argv[])
|
||||||
DWORD count;
|
DWORD count;
|
||||||
HANDLE hff;
|
HANDLE hff;
|
||||||
WIN32_FIND_DATAW fd;
|
WIN32_FIND_DATAW fd;
|
||||||
WCHAR flags[9] = {' ',' ',' ',' ',' ',' ',' ',' ','\0'};
|
WCHAR flags[] = {' ',' ',' ',' ',' ',' ',' ',' ','\0'};
|
||||||
WCHAR name[128];
|
WCHAR name[128];
|
||||||
WCHAR *param = argc >= 2 ? argv[1] : NULL;
|
WCHAR *param = argc >= 2 ? argv[1] : NULL;
|
||||||
DWORD attrib_set = 0;
|
DWORD attrib_set = 0;
|
||||||
|
|
Loading…
Reference in New Issue