@@ -39,7 +39,7 @@ BOOL GetArgument(WCHAR* arg, int argc, WCHAR* argv[])
3939
4040 for (i = 1 ; i < argc ; i ++ )
4141 {
42- if (wcsicmp (argv [i ], arg ) == 0 )
42+ if (_wcsicmp (argv [i ], arg ) == 0 )
4343 return TRUE;
4444 }
4545
@@ -698,7 +698,7 @@ int wmain(int argc, WCHAR* argv[])
698698 /* first things first-- let's detect and manage both printing modifiers (/fo and /nh) */
699699 for (i = 1 ; i < argc ; i ++ )
700700 {
701- if (wcsicmp (argv [i ], L"/nh" ) == 0 )
701+ if (_wcsicmp (argv [i ], L"/nh" ) == 0 )
702702 {
703703 NoHeaderArgCount ++ ;
704704
@@ -713,22 +713,22 @@ int wmain(int argc, WCHAR* argv[])
713713
714714 for (i = 1 ; i < argc ; i ++ )
715715 {
716- if (wcsicmp (argv [i ], L"/fo" ) == 0 )
716+ if (_wcsicmp (argv [i ], L"/fo" ) == 0 )
717717 {
718718 if ((i + 1 ) < argc )
719719 {
720720 // wprintf(L"exists another param after /fo\n");
721721
722722 PrintFormatArgCount ++ ;
723723
724- if (wcsicmp (argv [i + 1 ], L"table" ) == 0 && PrintFormat != table )
724+ if (_wcsicmp (argv [i + 1 ], L"table" ) == 0 && PrintFormat != table )
725725 {
726726 PrintFormat = table ;
727727 // wprintf(L"Changed to table format\n");
728728 BlankArgument (i , argv );
729729 BlankArgument (i + 1 , argv );
730730 }
731- else if (wcsicmp (argv [i + 1 ], L"list" ) == 0 && PrintFormat != list )
731+ else if (_wcsicmp (argv [i + 1 ], L"list" ) == 0 && PrintFormat != list )
732732 {
733733 PrintFormat = list ;
734734 // wprintf(L"Changed to list format\n");
@@ -743,22 +743,22 @@ int wmain(int argc, WCHAR* argv[])
743743 return 1 ;
744744 }
745745 }
746- else if (wcsicmp (argv [i + 1 ], L"csv" ) == 0 && PrintFormat != csv )
746+ else if (_wcsicmp (argv [i + 1 ], L"csv" ) == 0 && PrintFormat != csv )
747747 {
748748 PrintFormat = csv ;
749749 // wprintf(L"Changed to csv format\n");
750750 BlankArgument (i , argv );
751751 BlankArgument (i + 1 , argv );
752752 }
753753 /* /nh or /fo after /fo isn't parsed as a value */
754- else if (wcsicmp (argv [i + 1 ], L"/nh" ) == 0 || wcsicmp (argv [i + 1 ], L"/fo" ) == 0
754+ else if (_wcsicmp (argv [i + 1 ], L"/nh" ) == 0 || _wcsicmp (argv [i + 1 ], L"/fo" ) == 0
755755
756756 /* same goes for the other named options, not ideal, but works */
757- || wcsicmp (argv [i + 1 ], L"/priv" ) == 0
758- || wcsicmp (argv [i + 1 ], L"/groups" ) == 0
759- || wcsicmp (argv [i + 1 ], L"/user" ) == 0
760- || wcsicmp (argv [i + 1 ], L"/all" ) == 0
761- || wcsicmp (argv [i + 1 ], L"" ) == 0 )
757+ || _wcsicmp (argv [i + 1 ], L"/priv" ) == 0
758+ || _wcsicmp (argv [i + 1 ], L"/groups" ) == 0
759+ || _wcsicmp (argv [i + 1 ], L"/user" ) == 0
760+ || _wcsicmp (argv [i + 1 ], L"/all" ) == 0
761+ || _wcsicmp (argv [i + 1 ], L"" ) == 0 )
762762 {
763763 goto FoValueExpected ;
764764 }
@@ -806,13 +806,13 @@ int wmain(int argc, WCHAR* argv[])
806806 if (argc == 2 )
807807 {
808808 /* now let's try to parse the triumvirate of simpler, single (1) arguments... plus help */
809- if (wcsicmp (argv [1 ], L"/?" ) == 0 )
809+ if (_wcsicmp (argv [1 ], L"/?" ) == 0 )
810810 {
811811 wprintf (WhoamiLoadRcString (IDS_HELP ));
812812 return 0 ;
813813 }
814814
815- else if (wcsicmp (argv [1 ], L"/upn" ) == 0 )
815+ else if (_wcsicmp (argv [1 ], L"/upn" ) == 0 )
816816 {
817817 LPWSTR UserBuffer = WhoamiGetUser (NameUserPrincipal );
818818
@@ -829,7 +829,7 @@ int wmain(int argc, WCHAR* argv[])
829829 }
830830 }
831831
832- else if (wcsicmp (argv [1 ], L"/fqdn" ) == 0 )
832+ else if (_wcsicmp (argv [1 ], L"/fqdn" ) == 0 )
833833 {
834834 LPWSTR UserBuffer = WhoamiGetUser (NameFullyQualifiedDN );
835835
@@ -846,7 +846,7 @@ int wmain(int argc, WCHAR* argv[])
846846 }
847847 }
848848
849- else if (wcsicmp (argv [1 ], L"/logonid" ) == 0 )
849+ else if (_wcsicmp (argv [1 ], L"/logonid" ) == 0 )
850850 {
851851 return WhoamiLogonId ();
852852 }
@@ -858,11 +858,11 @@ int wmain(int argc, WCHAR* argv[])
858858 /* sometimes is just easier to whitelist for lack of a better method */
859859 for (i = 1 ; i < argc ; i ++ )
860860 {
861- if ((wcsicmp (argv [i ], L"/user" ) != 0 ) &&
862- (wcsicmp (argv [i ], L"/groups" ) != 0 ) &&
863- (wcsicmp (argv [i ], L"/priv" ) != 0 ) &&
864- (wcsicmp (argv [i ], L"/all" ) != 0 ) &&
865- (wcsicmp (argv [i ], L"" ) != 0 ))
861+ if ((_wcsicmp (argv [i ], L"/user" ) != 0 ) &&
862+ (_wcsicmp (argv [i ], L"/groups" ) != 0 ) &&
863+ (_wcsicmp (argv [i ], L"/priv" ) != 0 ) &&
864+ (_wcsicmp (argv [i ], L"/all" ) != 0 ) &&
865+ (_wcsicmp (argv [i ], L"" ) != 0 ))
866866 {
867867 wprintf (WhoamiLoadRcString (IDS_ERROR_INVALIDARG ), argv [i ]);
868868 return 1 ;
0 commit comments