[REACTOS] Use the ISO C and C++ conformant names: _wcsicmp, _stricmp

Stop using non-conforming wcsicmp, stricmp, strcasecmp
This commit is contained in:
Timo Kreuzer 2024-05-11 19:23:44 +03:00
parent fb9571ee3c
commit e4930be4ff
87 changed files with 293 additions and 293 deletions

View file

@ -243,7 +243,7 @@ EnumFilesWorker(
do do
{ {
BOOL bIsDir = !!(EnumCtx->findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY); BOOL bIsDir = !!(EnumCtx->findData.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY);
BOOL bExactMatch = (wcsicmp(findFileName, EnumCtx->FileName) == 0); BOOL bExactMatch = (_wcsicmp(findFileName, EnumCtx->FileName) == 0);
if (bIsDir && !(EnumCtx->Flags & ENUM_DIRECTORIES) && !bExactMatch) if (bIsDir && !(EnumCtx->Flags & ENUM_DIRECTORIES) && !bExactMatch)
continue; continue;
@ -330,9 +330,9 @@ int wmain(int argc, WCHAR *argv[])
} }
else else
/* Retrieve the enumeration modes */ /* Retrieve the enumeration modes */
if (wcsicmp(argv[i], L"/s") == 0) if (_wcsicmp(argv[i], L"/s") == 0)
dwEnumFlags |= ENUM_RECURSE; dwEnumFlags |= ENUM_RECURSE;
else if (wcsicmp(argv[i], L"/d") == 0) else if (_wcsicmp(argv[i], L"/d") == 0)
dwEnumFlags |= ENUM_DIRECTORIES; dwEnumFlags |= ENUM_DIRECTORIES;
else else
{ {

View file

@ -305,8 +305,8 @@ wmain(VOID)
{ {
pszExeName = RemoveQuotes(pArgStart + 9); pszExeName = RemoveQuotes(pArgStart + 9);
} }
else if (!wcsicmp(pArgStart, L"/H") || else if (!_wcsicmp(pArgStart, L"/H") ||
!wcsicmp(pArgStart, L"/HISTORY")) !_wcsicmp(pArgStart, L"/HISTORY"))
{ {
PrintHistory(); PrintHistory();
} }
@ -314,20 +314,20 @@ wmain(VOID)
{ {
SetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName); SetConsoleNumberOfCommandsW(_wtoi(pArgStart + 10), pszExeName);
} }
else if (!wcsicmp(pArgStart, L"/REINSTALL")) else if (!_wcsicmp(pArgStart, L"/REINSTALL"))
{ {
ExpungeConsoleCommandHistoryW(pszExeName); ExpungeConsoleCommandHistoryW(pszExeName);
} }
else if (!wcsicmp(pArgStart, L"/INSERT")) else if (!_wcsicmp(pArgStart, L"/INSERT"))
{ {
SetInsert(ENABLE_INSERT_MODE); SetInsert(ENABLE_INSERT_MODE);
} }
else if (!wcsicmp(pArgStart, L"/OVERSTRIKE")) else if (!_wcsicmp(pArgStart, L"/OVERSTRIKE"))
{ {
SetInsert(0); SetInsert(0);
} }
else if (!wcsicmp(pArgStart, L"/M") || else if (!_wcsicmp(pArgStart, L"/M") ||
!wcsicmp(pArgStart, L"/MACROS")) !_wcsicmp(pArgStart, L"/MACROS"))
{ {
PrintMacros(pszExeName, L""); PrintMacros(pszExeName, L"");
} }
@ -335,7 +335,7 @@ wmain(VOID)
!_wcsnicmp(pArgStart, L"/MACROS:", 8)) !_wcsnicmp(pArgStart, L"/MACROS:", 8))
{ {
LPWSTR exe = RemoveQuotes(wcschr(pArgStart, L':') + 1); LPWSTR exe = RemoveQuotes(wcschr(pArgStart, L':') + 1);
if (!wcsicmp(exe, L"ALL")) if (!_wcsicmp(exe, L"ALL"))
PrintAllMacros(); PrintAllMacros();
else else
PrintMacros(exe, L""); PrintMacros(exe, L"");

View file

@ -56,7 +56,7 @@ int wmain(int argc, WCHAR* argv[])
} }
else else
{ {
if ((wcsicmp(argv[1], L"-s") == 0) || (wcsicmp(argv[1], L"/s") == 0)) if ((_wcsicmp(argv[1], L"-s") == 0) || (_wcsicmp(argv[1], L"/s") == 0))
{ {
/* The program doesn't allow the user to set the host name */ /* The program doesn't allow the user to set the host name */
LoadStringW(GetModuleHandle(NULL), IDS_NOSET, Msg, _countof(Msg)); LoadStringW(GetModuleHandle(NULL), IDS_NOSET, Msg, _countof(Msg));

View file

@ -39,7 +39,7 @@ BOOL GetArgument(WCHAR* arg, int argc, WCHAR* argv[])
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
{ {
if (wcsicmp(argv[i], arg) == 0) if (_wcsicmp(argv[i], arg) == 0)
return TRUE; return TRUE;
} }
@ -698,7 +698,7 @@ int wmain(int argc, WCHAR* argv[])
/* first things first-- let's detect and manage both printing modifiers (/fo and /nh) */ /* first things first-- let's detect and manage both printing modifiers (/fo and /nh) */
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
{ {
if (wcsicmp(argv[i], L"/nh") == 0) if (_wcsicmp(argv[i], L"/nh") == 0)
{ {
NoHeaderArgCount++; NoHeaderArgCount++;
@ -713,7 +713,7 @@ int wmain(int argc, WCHAR* argv[])
for (i = 1; i < argc; i++) for (i = 1; i < argc; i++)
{ {
if (wcsicmp(argv[i], L"/fo") == 0) if (_wcsicmp(argv[i], L"/fo") == 0)
{ {
if ((i + 1) < argc) if ((i + 1) < argc)
{ {
@ -721,14 +721,14 @@ int wmain(int argc, WCHAR* argv[])
PrintFormatArgCount++; PrintFormatArgCount++;
if (wcsicmp(argv[i + 1], L"table") == 0 && PrintFormat != table) if (_wcsicmp(argv[i + 1], L"table") == 0 && PrintFormat != table)
{ {
PrintFormat = table; PrintFormat = table;
// wprintf(L"Changed to table format\n"); // wprintf(L"Changed to table format\n");
BlankArgument(i, argv); BlankArgument(i, argv);
BlankArgument(i + 1, argv); BlankArgument(i + 1, argv);
} }
else if (wcsicmp(argv[i + 1], L"list") == 0 && PrintFormat != list) else if (_wcsicmp(argv[i + 1], L"list") == 0 && PrintFormat != list)
{ {
PrintFormat = list; PrintFormat = list;
// wprintf(L"Changed to list format\n"); // wprintf(L"Changed to list format\n");
@ -743,7 +743,7 @@ int wmain(int argc, WCHAR* argv[])
return 1; return 1;
} }
} }
else if (wcsicmp(argv[i + 1], L"csv") == 0 && PrintFormat != csv) else if (_wcsicmp(argv[i + 1], L"csv") == 0 && PrintFormat != csv)
{ {
PrintFormat = csv; PrintFormat = csv;
// wprintf(L"Changed to csv format\n"); // wprintf(L"Changed to csv format\n");
@ -751,14 +751,14 @@ int wmain(int argc, WCHAR* argv[])
BlankArgument(i + 1, argv); BlankArgument(i + 1, argv);
} }
/* /nh or /fo after /fo isn't parsed as a value */ /* /nh or /fo after /fo isn't parsed as a value */
else if (wcsicmp(argv[i + 1], L"/nh") == 0 || wcsicmp(argv[i + 1], L"/fo") == 0 else if (_wcsicmp(argv[i + 1], L"/nh") == 0 || _wcsicmp(argv[i + 1], L"/fo") == 0
/* same goes for the other named options, not ideal, but works */ /* same goes for the other named options, not ideal, but works */
|| wcsicmp(argv[i + 1], L"/priv") == 0 || _wcsicmp(argv[i + 1], L"/priv") == 0
|| wcsicmp(argv[i + 1], L"/groups") == 0 || _wcsicmp(argv[i + 1], L"/groups") == 0
|| wcsicmp(argv[i + 1], L"/user") == 0 || _wcsicmp(argv[i + 1], L"/user") == 0
|| wcsicmp(argv[i + 1], L"/all") == 0 || _wcsicmp(argv[i + 1], L"/all") == 0
|| wcsicmp(argv[i + 1], L"") == 0) || _wcsicmp(argv[i + 1], L"") == 0)
{ {
goto FoValueExpected; goto FoValueExpected;
} }
@ -806,13 +806,13 @@ int wmain(int argc, WCHAR* argv[])
if (argc == 2) if (argc == 2)
{ {
/* now let's try to parse the triumvirate of simpler, single (1) arguments... plus help */ /* now let's try to parse the triumvirate of simpler, single (1) arguments... plus help */
if (wcsicmp(argv[1], L"/?") == 0) if (_wcsicmp(argv[1], L"/?") == 0)
{ {
wprintf(WhoamiLoadRcString(IDS_HELP)); wprintf(WhoamiLoadRcString(IDS_HELP));
return 0; return 0;
} }
else if (wcsicmp(argv[1], L"/upn") == 0) else if (_wcsicmp(argv[1], L"/upn") == 0)
{ {
LPWSTR UserBuffer = WhoamiGetUser(NameUserPrincipal); LPWSTR UserBuffer = WhoamiGetUser(NameUserPrincipal);
@ -829,7 +829,7 @@ int wmain(int argc, WCHAR* argv[])
} }
} }
else if (wcsicmp(argv[1], L"/fqdn") == 0) else if (_wcsicmp(argv[1], L"/fqdn") == 0)
{ {
LPWSTR UserBuffer = WhoamiGetUser(NameFullyQualifiedDN); LPWSTR UserBuffer = WhoamiGetUser(NameFullyQualifiedDN);
@ -846,7 +846,7 @@ int wmain(int argc, WCHAR* argv[])
} }
} }
else if (wcsicmp(argv[1], L"/logonid") == 0) else if (_wcsicmp(argv[1], L"/logonid") == 0)
{ {
return WhoamiLogonId(); return WhoamiLogonId();
} }
@ -858,11 +858,11 @@ int wmain(int argc, WCHAR* argv[])
/* sometimes is just easier to whitelist for lack of a better method */ /* sometimes is just easier to whitelist for lack of a better method */
for (i=1; i<argc; i++) for (i=1; i<argc; i++)
{ {
if ((wcsicmp(argv[i], L"/user") != 0) && if ((_wcsicmp(argv[i], L"/user") != 0) &&
(wcsicmp(argv[i], L"/groups") != 0) && (_wcsicmp(argv[i], L"/groups") != 0) &&
(wcsicmp(argv[i], L"/priv") != 0) && (_wcsicmp(argv[i], L"/priv") != 0) &&
(wcsicmp(argv[i], L"/all") != 0) && (_wcsicmp(argv[i], L"/all") != 0) &&
(wcsicmp(argv[i], L"") != 0)) (_wcsicmp(argv[i], L"") != 0))
{ {
wprintf(WhoamiLoadRcString(IDS_ERROR_INVALIDARG), argv[i]); wprintf(WhoamiLoadRcString(IDS_ERROR_INVALIDARG), argv[i]);
return 1; return 1;

View file

@ -1936,7 +1936,7 @@ FilterByString(IN PCWSTR FilterString, // This is a multi-string
pStr = FilterString; pStr = FilterString;
while (*pStr) while (*pStr)
{ {
if (wcsicmp(pStr, String) == 0) if (_wcsicmp(pStr, String) == 0)
{ {
/* We have a match, break the loop */ /* We have a match, break the loop */
break; break;
@ -2955,7 +2955,7 @@ BuildLogListAndFilterList(IN LPCWSTR lpComputerName)
for (lpcName = 0; lpcName < ARRAYSIZE(SystemLogs); ++lpcName) for (lpcName = 0; lpcName < ARRAYSIZE(SystemLogs); ++lpcName)
{ {
/* Check whether the log name is part of the system logs */ /* Check whether the log name is part of the system logs */
if (wcsicmp(LogName, SystemLogs[lpcName]) == 0) if (_wcsicmp(LogName, SystemLogs[lpcName]) == 0)
{ {
hRootNode = htiSystemLogs; hRootNode = htiSystemLogs;
break; break;
@ -2967,7 +2967,7 @@ BuildLogListAndFilterList(IN LPCWSTR lpComputerName)
2, 3, (LPARAM)EventLogFilter); 2, 3, (LPARAM)EventLogFilter);
/* Try to get the default event log: "Application" */ /* Try to get the default event log: "Application" */
if ((hItemDefault == NULL) && (wcsicmp(LogName, SystemLogs[0]) == 0)) if ((hItemDefault == NULL) && (_wcsicmp(LogName, SystemLogs[0]) == 0))
{ {
hItemDefault = hItem; hItemDefault = hItem;
} }

View file

@ -70,7 +70,7 @@ cmdAccounts(
if (_wcsnicmp(argv[i], L"/forcelogoff:", 13) == 0) if (_wcsnicmp(argv[i], L"/forcelogoff:", 13) == 0)
{ {
p = &argv[i][13]; p = &argv[i][13];
if (wcsicmp(p, L"no") == 0) if (_wcsicmp(p, L"no") == 0)
{ {
Info0->usrmod0_force_logoff = TIMEQ_FOREVER; Info0->usrmod0_force_logoff = TIMEQ_FOREVER;
Modified = TRUE; Modified = TRUE;
@ -107,7 +107,7 @@ cmdAccounts(
{ {
p = &argv[i][10]; p = &argv[i][10];
if (wcsicmp(p, L"unlimited")) if (_wcsicmp(p, L"unlimited"))
{ {
Info0->usrmod0_max_passwd_age = ULONG_MAX; Info0->usrmod0_max_passwd_age = ULONG_MAX;
Modified = TRUE; Modified = TRUE;

View file

@ -47,7 +47,7 @@ EnumerateConnections(LPCWSTR Local)
lpCur = lpRes; lpCur = lpRes;
for (; dCount; dCount--) for (; dCount; dCount--)
{ {
if (!Local || wcsicmp(lpCur->lpLocalName, Local) == 0) if (!Local || _wcsicmp(lpCur->lpLocalName, Local) == 0)
{ {
ConPrintf(StdOut, L"%s\t\t\t%s\t\t%s\n", lpCur->lpLocalName, lpCur->lpRemoteName, lpCur->lpProvider); ConPrintf(StdOut, L"%s\t\t\t%s\t\t%s\n", lpCur->lpLocalName, lpCur->lpRemoteName, lpCur->lpProvider);
} }
@ -135,7 +135,7 @@ cmdUse(
} }
Delete = 0; Delete = 0;
if (wcsicmp(argv[2], L"/DELETE") == 0) if (_wcsicmp(argv[2], L"/DELETE") == 0)
{ {
Delete = 3; Delete = 3;
} }
@ -149,7 +149,7 @@ cmdUse(
} }
} }
if (wcsicmp(argv[3], L"/DELETE") == 0) if (_wcsicmp(argv[3], L"/DELETE") == 0)
{ {
Delete = 2; Delete = 2;
} }

View file

@ -962,7 +962,7 @@ ParseLogonHours(
goto done; goto done;
} }
if (wcsicmp(pszParams, L"all") == 0) if (_wcsicmp(pszParams, L"all") == 0)
{ {
FillMemory(pLogonBitmap, UNITS_PER_WEEK / 8, 0xFF); FillMemory(pLogonBitmap, UNITS_PER_WEEK / 8, 0xFF);
goto done; goto done;

View file

@ -36,8 +36,8 @@ InterpretCommand(
return FALSE; return FALSE;
} }
if ((wcsicmp(argv[dwArgCount - 1], L"?") == 0) || if ((_wcsicmp(argv[dwArgCount - 1], L"?") == 0) ||
(wcsicmp(argv[dwArgCount - 1], L"help") == 0)) (_wcsicmp(argv[dwArgCount - 1], L"help") == 0))
{ {
dwHelpLevel = dwArgCount - 1; dwHelpLevel = dwArgCount - 1;
} }
@ -49,7 +49,7 @@ InterpretCommand(
pCommand = pContext->pCommandListHead; pCommand = pContext->pCommandListHead;
while (pCommand != NULL) while (pCommand != NULL)
{ {
if (wcsicmp(argv[0], pCommand->pwszCmdToken) == 0) if (_wcsicmp(argv[0], pCommand->pwszCmdToken) == 0)
{ {
if (dwHelpLevel == 1) if (dwHelpLevel == 1)
{ {
@ -74,7 +74,7 @@ InterpretCommand(
pGroup = pContext->pGroupListHead; pGroup = pContext->pGroupListHead;
while (pGroup != NULL) while (pGroup != NULL)
{ {
if (wcsicmp(argv[0], pGroup->pwszCmdGroupToken) == 0) if (_wcsicmp(argv[0], pGroup->pwszCmdGroupToken) == 0)
{ {
if (dwHelpLevel == 1) if (dwHelpLevel == 1)
{ {
@ -85,7 +85,7 @@ InterpretCommand(
pCommand = pGroup->pCommandListHead; pCommand = pGroup->pCommandListHead;
while (pCommand != NULL) while (pCommand != NULL)
{ {
if ((dwArgCount > 1) && (wcsicmp(argv[1], pCommand->pwszCmdToken) == 0)) if ((dwArgCount > 1) && (_wcsicmp(argv[1], pCommand->pwszCmdToken) == 0))
{ {
if (dwHelpLevel == 2) if (dwHelpLevel == 2)
{ {
@ -120,7 +120,7 @@ InterpretCommand(
pSubContext = pContext->pSubContextHead; pSubContext = pContext->pSubContextHead;
while (pSubContext != NULL) while (pSubContext != NULL)
{ {
if (wcsicmp(argv[0], pSubContext->pszContextName) == 0) if (_wcsicmp(argv[0], pSubContext->pszContextName) == 0)
{ {
pCurrentContext = pSubContext; pCurrentContext = pSubContext;
return TRUE; return TRUE;

View file

@ -212,7 +212,7 @@ MatchToken(
_In_ LPCWSTR pwszCmdToken) _In_ LPCWSTR pwszCmdToken)
{ {
DPRINT1("MatchToken %S %S\n", pwszUserToken, pwszCmdToken); DPRINT1("MatchToken %S %S\n", pwszUserToken, pwszCmdToken);
return (wcsicmp(pwszUserToken, pwszCmdToken) == 0) ? TRUE : FALSE; return (_wcsicmp(pwszUserToken, pwszCmdToken) == 0) ? TRUE : FALSE;
} }
DWORD DWORD

View file

@ -38,7 +38,7 @@ int wmain(int argc, wchar_t* argv[])
GetModuleFileNameW(NULL, RappsExe, ARRAYSIZE(RappsExe)); GetModuleFileNameW(NULL, RappsExe, ARRAYSIZE(RappsExe));
arglen = wcslen(RappsExe); arglen = wcslen(RappsExe);
if (arglen > 4 && !wcsicmp(RappsExe + arglen - 4, L".com")) if (arglen > 4 && !_wcsicmp(RappsExe + arglen - 4, L".com"))
{ {
wcscpy(RappsExe + arglen - 4, L".exe"); wcscpy(RappsExe + arglen - 4, L".exe");
} }

View file

@ -118,19 +118,19 @@ wmain(
result = 0; result = 0;
goto done; goto done;
} }
else if (wcsicmp(pszArg, L"profile") == 0) else if (_wcsicmp(pszArg, L"profile") == 0)
{ {
bProfile = TRUE; bProfile = TRUE;
} }
else if (wcsicmp(pszArg, L"netonly") == 0) else if (_wcsicmp(pszArg, L"netonly") == 0)
{ {
bNetOnly = TRUE; bNetOnly = TRUE;
} }
else if (wcsicmp(pszArg, L"noprofile") == 0) else if (_wcsicmp(pszArg, L"noprofile") == 0)
{ {
bNoProfile = TRUE; bNoProfile = TRUE;
} }
else if (wcsicmp(pszArg, L"env") == 0) else if (_wcsicmp(pszArg, L"env") == 0)
{ {
bEnv = TRUE; bEnv = TRUE;
} }

View file

@ -180,7 +180,7 @@ AddDialogControl(
*OutWnd = hwnd; *OutWnd = hwnd;
/* check if this the track bar */ /* check if this the track bar */
if (!wcsicmp(ClassName, L"msctls_trackbar32")) if (!_wcsicmp(ClassName, L"msctls_trackbar32"))
{ {
if (DialogItem->style & TBS_VERT) if (DialogItem->style & TBS_VERT)
{ {
@ -229,12 +229,12 @@ AddDialogControl(
SendMessage(hwnd, TBM_SETTIC, 0, (LPARAM)i); SendMessage(hwnd, TBM_SETTIC, 0, (LPARAM)i);
} }
} }
else if (!wcsicmp(ClassName, L"static")) else if (!_wcsicmp(ClassName, L"static"))
{ {
/* Set font */ /* Set font */
SendMessageW(hwnd, WM_SETFONT, (WPARAM)hFont, TRUE); SendMessageW(hwnd, WM_SETFONT, (WPARAM)hFont, TRUE);
} }
else if (!wcsicmp(ClassName, L"button")) else if (!_wcsicmp(ClassName, L"button"))
{ {
if (DialogItem->id == IDC_LINE_SWITCH) if (DialogItem->id == IDC_LINE_SWITCH)
{ {
@ -789,7 +789,7 @@ UpdateDialogLineSwitchControl(
} }
/* check if the line name matches */ /* check if the line name matches */
if (!wcsicmp(LineName, Line->szName)) if (!_wcsicmp(LineName, Line->szName))
{ {
/* found matching line name */ /* found matching line name */
wID = (Index + 1) * IDC_LINE_SWITCH; wID = (Index + 1) * IDC_LINE_SWITCH;
@ -836,7 +836,7 @@ UpdateDialogLineSliderControl(
} }
/* check if the line name matches */ /* check if the line name matches */
if (!wcsicmp(LineName, Line->szName)) if (!_wcsicmp(LineName, Line->szName))
{ {
/* found matching line name */ /* found matching line name */
wID = (Index + 1) * dwDialogID; wID = (Index + 1) * dwDialogID;

View file

@ -628,7 +628,7 @@ SndMixerGetLineByName(PSND_MIXER Mixer,
{ {
if (Line->DisplayControls != 0) if (Line->DisplayControls != 0)
{ {
if (wcsicmp(Line->Info.szName, LineName) == 0) if (_wcsicmp(Line->Info.szName, LineName) == 0)
{ {
return &Line->Info; return &Line->Info;
} }
@ -636,7 +636,7 @@ SndMixerGetLineByName(PSND_MIXER Mixer,
for (Connection = Line->Connections; Connection != NULL; Connection = Connection->Next) for (Connection = Line->Connections; Connection != NULL; Connection = Connection->Next)
{ {
if (wcsicmp(Connection->Info.szName, LineName) == 0) if (_wcsicmp(Connection->Info.szName, LineName) == 0)
{ {
return &Connection->Info; return &Connection->Info;
} }

View file

@ -636,7 +636,7 @@ SetVolumeCallback(PSND_MIXER Mixer, DWORD LineID, LPMIXERLINE Line, PVOID Ctx)
PSET_VOLUME_CONTEXT Context = (PSET_VOLUME_CONTEXT)Ctx; PSET_VOLUME_CONTEXT Context = (PSET_VOLUME_CONTEXT)Ctx;
/* check if the line name is equal */ /* check if the line name is equal */
if (wcsicmp(Line->szName, Context->LineName)) if (_wcsicmp(Line->szName, Context->LineName))
{ {
/* it is not */ /* it is not */
return TRUE; return TRUE;

View file

@ -517,7 +517,7 @@ PDHCP_ADAPTER AdapterFindName( const WCHAR *name ) {
ListEntry != &AdapterList; ListEntry != &AdapterList;
ListEntry = ListEntry->Flink ) { ListEntry = ListEntry->Flink ) {
Adapter = CONTAINING_RECORD( ListEntry, DHCP_ADAPTER, ListEntry ); Adapter = CONTAINING_RECORD( ListEntry, DHCP_ADAPTER, ListEntry );
if( !wcsicmp( Adapter->IfMib.wszName, name ) ) return Adapter; if( !_wcsicmp( Adapter->IfMib.wszName, name ) ) return Adapter;
} }
return NULL; return NULL;

View file

@ -946,7 +946,7 @@ InstallFatBootcodeToPartition(
/* Install new bootcode into a file */ /* Install new bootcode into a file */
CombinePaths(DstPath, ARRAYSIZE(DstPath), 2, SystemRootPath->Buffer, L"bootsect.ros"); CombinePaths(DstPath, ARRAYSIZE(DstPath), 2, SystemRootPath->Buffer, L"bootsect.ros");
if (wcsicmp(FileSystemName, L"FAT32") == 0) if (_wcsicmp(FileSystemName, L"FAT32") == 0)
{ {
/* Install FAT32 bootcode */ /* Install FAT32 bootcode */
CombinePaths(SrcPath, ARRAYSIZE(SrcPath), 2, SourceRootPath->Buffer, L"\\loader\\fat32.bin"); CombinePaths(SrcPath, ARRAYSIZE(SrcPath), 2, SourceRootPath->Buffer, L"\\loader\\fat32.bin");
@ -1139,7 +1139,7 @@ InstallFatBootcodeToPartition(
} }
/* Install new bootsector on the disk */ /* Install new bootsector on the disk */
if (wcsicmp(FileSystemName, L"FAT32") == 0) if (_wcsicmp(FileSystemName, L"FAT32") == 0)
{ {
/* Install FAT32 bootcode */ /* Install FAT32 bootcode */
CombinePaths(SrcPath, ARRAYSIZE(SrcPath), 2, SourceRootPath->Buffer, L"\\loader\\fat32.bin"); CombinePaths(SrcPath, ARRAYSIZE(SrcPath), 2, SourceRootPath->Buffer, L"\\loader\\fat32.bin");
@ -1384,30 +1384,30 @@ InstallVBRToPartition(
IN PUNICODE_STRING DestinationArcPath, IN PUNICODE_STRING DestinationArcPath,
IN PCWSTR FileSystemName) IN PCWSTR FileSystemName)
{ {
if (wcsicmp(FileSystemName, L"FAT") == 0 || if (_wcsicmp(FileSystemName, L"FAT") == 0 ||
wcsicmp(FileSystemName, L"FAT32") == 0) _wcsicmp(FileSystemName, L"FAT32") == 0)
{ {
return InstallFatBootcodeToPartition(SystemRootPath, return InstallFatBootcodeToPartition(SystemRootPath,
SourceRootPath, SourceRootPath,
DestinationArcPath, DestinationArcPath,
FileSystemName); FileSystemName);
} }
else if (wcsicmp(FileSystemName, L"NTFS") == 0) else if (_wcsicmp(FileSystemName, L"NTFS") == 0)
{ {
return InstallNtfsBootcodeToPartition(SystemRootPath, return InstallNtfsBootcodeToPartition(SystemRootPath,
SourceRootPath, SourceRootPath,
DestinationArcPath); DestinationArcPath);
} }
else if (wcsicmp(FileSystemName, L"BTRFS") == 0) else if (_wcsicmp(FileSystemName, L"BTRFS") == 0)
{ {
return InstallBtrfsBootcodeToPartition(SystemRootPath, return InstallBtrfsBootcodeToPartition(SystemRootPath,
SourceRootPath, SourceRootPath,
DestinationArcPath); DestinationArcPath);
} }
/* /*
else if (wcsicmp(FileSystemName, L"EXT2") == 0 || else if (_wcsicmp(FileSystemName, L"EXT2") == 0 ||
wcsicmp(FileSystemName, L"EXT3") == 0 || _wcsicmp(FileSystemName, L"EXT3") == 0 ||
wcsicmp(FileSystemName, L"EXT4") == 0) _wcsicmp(FileSystemName, L"EXT4") == 0)
{ {
return STATUS_NOT_SUPPORTED; return STATUS_NOT_SUPPORTED;
} }

View file

@ -3121,10 +3121,10 @@ IsSupportedActivePartition(
ASSERT(*Volume->Info.FileSystem); ASSERT(*Volume->Info.FileSystem);
/* NOTE: Please keep in sync with the RegisteredFileSystems list! */ /* NOTE: Please keep in sync with the RegisteredFileSystems list! */
if (wcsicmp(Volume->Info.FileSystem, L"FAT") == 0 || if (_wcsicmp(Volume->Info.FileSystem, L"FAT") == 0 ||
wcsicmp(Volume->Info.FileSystem, L"FAT32") == 0 || _wcsicmp(Volume->Info.FileSystem, L"FAT32") == 0 ||
// wcsicmp(Volume->Info.FileSystem, L"NTFS") == 0 || // _wcsicmp(Volume->Info.FileSystem, L"NTFS") == 0 ||
wcsicmp(Volume->Info.FileSystem, L"BTRFS") == 0) _wcsicmp(Volume->Info.FileSystem, L"BTRFS") == 0)
{ {
return TRUE; return TRUE;
} }

View file

@ -1656,7 +1656,7 @@ FileCopyCallback(PVOID Context,
else DstFileName = FilePathInfo->Target; else DstFileName = FilePathInfo->Target;
// STRING_MOVING or STRING_RENAMING // STRING_MOVING or STRING_RENAMING
if (!wcsicmp(SrcFileName, DstFileName)) if (!_wcsicmp(SrcFileName, DstFileName))
StringCchPrintfW(Status, ARRAYSIZE(Status), L"Moving %s to %s", SrcFileName, DstFileName); StringCchPrintfW(Status, ARRAYSIZE(Status), L"Moving %s to %s", SrcFileName, DstFileName);
else else
StringCchPrintfW(Status, ARRAYSIZE(Status), L"Renaming %s to %s", SrcFileName, DstFileName); StringCchPrintfW(Status, ARRAYSIZE(Status), L"Renaming %s to %s", SrcFileName, DstFileName);
@ -2260,7 +2260,7 @@ BOOL LoadSetupData(
ListEntry = GetNextListEntry(ListEntry)) ListEntry = GetNextListEntry(ListEntry))
{ {
PCWSTR LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id; PCWSTR LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id;
if (!wcsicmp(pSetupData->DefaultLanguage, LocaleId)) if (!_wcsicmp(pSetupData->DefaultLanguage, LocaleId))
{ {
DPRINT("found %S in LanguageList\n", LocaleId); DPRINT("found %S in LanguageList\n", LocaleId);
SetCurrentListEntry(LanguageList, ListEntry); SetCurrentListEntry(LanguageList, ListEntry);
@ -2273,7 +2273,7 @@ BOOL LoadSetupData(
ListEntry = GetNextListEntry(ListEntry)) ListEntry = GetNextListEntry(ListEntry))
{ {
PCWSTR pszLayoutId = ((PGENENTRY)GetListEntryData(ListEntry))->Id; PCWSTR pszLayoutId = ((PGENENTRY)GetListEntryData(ListEntry))->Id;
if (!wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId)) if (!_wcsicmp(pSetupData->DefaultKBLayout, pszLayoutId))
{ {
DPRINT("Found %S in LayoutList\n", pszLayoutId); DPRINT("Found %S in LayoutList\n", pszLayoutId);
SetCurrentListEntry(LayoutList, ListEntry); SetCurrentListEntry(LayoutList, ListEntry);

View file

@ -531,7 +531,7 @@ CommandHelp(
{ {
for (cmdptr = Commands; cmdptr->name != NULL; cmdptr++) for (cmdptr = Commands; cmdptr->name != NULL; cmdptr++)
{ {
if (!stricmp(param, cmdptr->name)) if (!_stricmp(param, cmdptr->name))
{ {
if (cmdptr->help != NULL) if (cmdptr->help != NULL)
{ {
@ -1122,7 +1122,7 @@ DoCommand(
break; break;
} }
if (stricmp(com, cmdptr->name) == 0) if (_stricmp(com, cmdptr->name) == 0)
{ {
cmdptr->func(State, rest); cmdptr->func(State, rest);
break; break;

View file

@ -104,22 +104,22 @@ DoWatchDestFileName(LPCWSTR FileName)
{ {
if (FileName[0] == 'm' || FileName[0] == 'M') if (FileName[0] == 'm' || FileName[0] == 'M')
{ {
if (wcsicmp(FileName, L"mingliu.ttc") == 0) if (_wcsicmp(FileName, L"mingliu.ttc") == 0)
{ {
DPRINT("mingliu.ttc found\n"); DPRINT("mingliu.ttc found\n");
s_SubstSettings.bFoundFontMINGLIU = TRUE; s_SubstSettings.bFoundFontMINGLIU = TRUE;
} }
else if (wcsicmp(FileName, L"msgothic.ttc") == 0) else if (_wcsicmp(FileName, L"msgothic.ttc") == 0)
{ {
DPRINT("msgothic.ttc found\n"); DPRINT("msgothic.ttc found\n");
s_SubstSettings.bFoundFontMSGOTHIC = TRUE; s_SubstSettings.bFoundFontMSGOTHIC = TRUE;
} }
else if (wcsicmp(FileName, L"msmincho.ttc") == 0) else if (_wcsicmp(FileName, L"msmincho.ttc") == 0)
{ {
DPRINT("msmincho.ttc found\n"); DPRINT("msmincho.ttc found\n");
s_SubstSettings.bFoundFontMSMINCHO = TRUE; s_SubstSettings.bFoundFontMSMINCHO = TRUE;
} }
else if (wcsicmp(FileName, L"mssong.ttf") == 0) else if (_wcsicmp(FileName, L"mssong.ttf") == 0)
{ {
DPRINT("mssong.ttf found\n"); DPRINT("mssong.ttf found\n");
s_SubstSettings.bFoundFontMSSONG = TRUE; s_SubstSettings.bFoundFontMSSONG = TRUE;
@ -127,17 +127,17 @@ DoWatchDestFileName(LPCWSTR FileName)
} }
else else
{ {
if (wcsicmp(FileName, L"simsun.ttc") == 0) if (_wcsicmp(FileName, L"simsun.ttc") == 0)
{ {
DPRINT("simsun.ttc found\n"); DPRINT("simsun.ttc found\n");
s_SubstSettings.bFoundFontSIMSUN = TRUE; s_SubstSettings.bFoundFontSIMSUN = TRUE;
} }
else if (wcsicmp(FileName, L"gulim.ttc") == 0) else if (_wcsicmp(FileName, L"gulim.ttc") == 0)
{ {
DPRINT("gulim.ttc found\n"); DPRINT("gulim.ttc found\n");
s_SubstSettings.bFoundFontGULIM = TRUE; s_SubstSettings.bFoundFontGULIM = TRUE;
} }
else if (wcsicmp(FileName, L"batang.ttc") == 0) else if (_wcsicmp(FileName, L"batang.ttc") == 0)
{ {
DPRINT("batang.ttc found\n"); DPRINT("batang.ttc found\n");
s_SubstSettings.bFoundFontBATANG = TRUE; s_SubstSettings.bFoundFontBATANG = TRUE;
@ -607,7 +607,7 @@ SetupStartPage(PINPUT_RECORD Ir)
ListEntry = GetNextListEntry(ListEntry)) ListEntry = GetNextListEntry(ListEntry))
{ {
LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id; LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id;
if (!wcsicmp(USetupData.LocaleID, LocaleId)) if (!_wcsicmp(USetupData.LocaleID, LocaleId))
{ {
DPRINT("found %S in LanguageList\n", LocaleId); DPRINT("found %S in LanguageList\n", LocaleId);
SetCurrentListEntry(USetupData.LanguageList, ListEntry); SetCurrentListEntry(USetupData.LanguageList, ListEntry);
@ -620,7 +620,7 @@ SetupStartPage(PINPUT_RECORD Ir)
ListEntry = GetNextListEntry(ListEntry)) ListEntry = GetNextListEntry(ListEntry))
{ {
LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id; LocaleId = ((PGENENTRY)GetListEntryData(ListEntry))->Id;
if (!wcsicmp(USetupData.LocaleID, LocaleId)) if (!_wcsicmp(USetupData.LocaleID, LocaleId))
{ {
DPRINT("found %S in LayoutList\n", LocaleId); DPRINT("found %S in LayoutList\n", LocaleId);
SetCurrentListEntry(USetupData.LayoutList, ListEntry); SetCurrentListEntry(USetupData.LayoutList, ListEntry);
@ -3219,7 +3219,7 @@ FileCopyCallback(PVOID Context,
if (DstFileName) ++DstFileName; if (DstFileName) ++DstFileName;
else DstFileName = FilePathInfo->Target; else DstFileName = FilePathInfo->Target;
if (!wcsicmp(SrcFileName, DstFileName)) if (!_wcsicmp(SrcFileName, DstFileName))
Param2 = STRING_MOVING; Param2 = STRING_MOVING;
else else
Param2 = STRING_RENAMING; Param2 = STRING_RENAMING;

View file

@ -60,7 +60,7 @@ HelpCommand(
{ {
if (pCommand->cmd1 != NULL && pCommand->cmd2 == NULL && pCommand->cmd3 == NULL) if (pCommand->cmd1 != NULL && pCommand->cmd2 == NULL && pCommand->cmd3 == NULL)
{ {
if ((cmdptr->cmd1 != NULL && wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) && if ((cmdptr->cmd1 != NULL && _wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL) && (cmdptr->cmd2 != NULL) &&
(cmdptr->cmd3 == NULL) && (cmdptr->cmd3 == NULL) &&
(cmdptr->help != IDS_NONE)) (cmdptr->help != IDS_NONE))
@ -72,8 +72,8 @@ HelpCommand(
} }
else if (pCommand->cmd1 != NULL && pCommand->cmd2 != NULL && pCommand->cmd3 == NULL) else if (pCommand->cmd1 != NULL && pCommand->cmd2 != NULL && pCommand->cmd3 == NULL)
{ {
if ((cmdptr->cmd1 != NULL && wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) && if ((cmdptr->cmd1 != NULL && _wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL && wcsicmp(pCommand->cmd2, cmdptr->cmd2) == 0) && (cmdptr->cmd2 != NULL && _wcsicmp(pCommand->cmd2, cmdptr->cmd2) == 0) &&
(cmdptr->cmd3 != NULL) && (cmdptr->cmd3 != NULL) &&
(cmdptr->help != IDS_NONE)) (cmdptr->help != IDS_NONE))
{ {
@ -84,9 +84,9 @@ HelpCommand(
} }
else if (pCommand->cmd1 != NULL && pCommand->cmd2 != NULL && pCommand->cmd3 != NULL) else if (pCommand->cmd1 != NULL && pCommand->cmd2 != NULL && pCommand->cmd3 != NULL)
{ {
if ((cmdptr->cmd1 != NULL && wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) && if ((cmdptr->cmd1 != NULL && _wcsicmp(pCommand->cmd1, cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL && wcsicmp(pCommand->cmd2, cmdptr->cmd2) == 0) && (cmdptr->cmd2 != NULL && _wcsicmp(pCommand->cmd2, cmdptr->cmd2) == 0) &&
(cmdptr->cmd3 != NULL && wcsicmp(pCommand->cmd3, cmdptr->cmd3) == 0) && (cmdptr->cmd3 != NULL && _wcsicmp(pCommand->cmd3, cmdptr->cmd3) == 0) &&
(cmdptr->help_detail != MSG_NONE)) (cmdptr->help_detail != MSG_NONE))
{ {
ConMsgPuts(StdOut, ConMsgPuts(StdOut,
@ -134,24 +134,24 @@ BOOL help_main(INT argc, LPWSTR *argv)
for (cmdptr = cmds; cmdptr->cmd1; cmdptr++) for (cmdptr = cmds; cmdptr->cmd1; cmdptr++)
{ {
if ((cmdptr1 == NULL) && if ((cmdptr1 == NULL) &&
(cmdptr->cmd1 != NULL && wcsicmp(argv[1], cmdptr->cmd1) == 0)) (cmdptr->cmd1 != NULL && _wcsicmp(argv[1], cmdptr->cmd1) == 0))
{ {
cmdptr1 = cmdptr; cmdptr1 = cmdptr;
} }
if ((cmdptr2 == NULL) && if ((cmdptr2 == NULL) &&
(argc >= 3) && (argc >= 3) &&
(cmdptr->cmd1 != NULL && wcsicmp(argv[1], cmdptr->cmd1) == 0) && (cmdptr->cmd1 != NULL && _wcsicmp(argv[1], cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL && wcsicmp(argv[2], cmdptr->cmd2) == 0)) (cmdptr->cmd2 != NULL && _wcsicmp(argv[2], cmdptr->cmd2) == 0))
{ {
cmdptr2 = cmdptr; cmdptr2 = cmdptr;
} }
if ((cmdptr3 == NULL) && if ((cmdptr3 == NULL) &&
(argc >= 4) && (argc >= 4) &&
(cmdptr->cmd1 != NULL && wcsicmp(argv[1], cmdptr->cmd1) == 0) && (cmdptr->cmd1 != NULL && _wcsicmp(argv[1], cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL && wcsicmp(argv[2], cmdptr->cmd2) == 0) && (cmdptr->cmd2 != NULL && _wcsicmp(argv[2], cmdptr->cmd2) == 0) &&
(cmdptr->cmd3 != NULL && wcsicmp(argv[3], cmdptr->cmd3) == 0)) (cmdptr->cmd3 != NULL && _wcsicmp(argv[3], cmdptr->cmd3) == 0))
{ {
cmdptr3 = cmdptr; cmdptr3 = cmdptr;
} }

View file

@ -120,30 +120,30 @@ InterpretCmd(
/* First, determine if the user wants to exit /* First, determine if the user wants to exit
or to use a comment */ or to use a comment */
if (wcsicmp(argv[0], L"exit") == 0) if (_wcsicmp(argv[0], L"exit") == 0)
return FALSE; return FALSE;
if (wcsicmp(argv[0], L"rem") == 0) if (_wcsicmp(argv[0], L"rem") == 0)
return TRUE; return TRUE;
/* Scan internal command table */ /* Scan internal command table */
for (cmdptr = cmds; cmdptr->cmd1; cmdptr++) for (cmdptr = cmds; cmdptr->cmd1; cmdptr++)
{ {
if ((cmdptr1 == NULL) && if ((cmdptr1 == NULL) &&
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0)) (cmdptr->cmd1 != NULL) && (_wcsicmp(argv[0], cmdptr->cmd1) == 0))
cmdptr1 = cmdptr; cmdptr1 = cmdptr;
if ((cmdptr2 == NULL) && if ((cmdptr2 == NULL) &&
(argc >= 2) && (argc >= 2) &&
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0) && (cmdptr->cmd1 != NULL) && (_wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL) && (wcsicmp(argv[1], cmdptr->cmd2) == 0)) (cmdptr->cmd2 != NULL) && (_wcsicmp(argv[1], cmdptr->cmd2) == 0))
cmdptr2 = cmdptr; cmdptr2 = cmdptr;
if ((cmdptr3 == NULL) && if ((cmdptr3 == NULL) &&
(argc >= 3) && (argc >= 3) &&
(cmdptr->cmd1 != NULL) && (wcsicmp(argv[0], cmdptr->cmd1) == 0) && (cmdptr->cmd1 != NULL) && (_wcsicmp(argv[0], cmdptr->cmd1) == 0) &&
(cmdptr->cmd2 != NULL) && (wcsicmp(argv[1], cmdptr->cmd2) == 0) && (cmdptr->cmd2 != NULL) && (_wcsicmp(argv[1], cmdptr->cmd2) == 0) &&
(cmdptr->cmd3 != NULL) && (wcsicmp(argv[2], cmdptr->cmd3) == 0)) (cmdptr->cmd3 != NULL) && (_wcsicmp(argv[2], cmdptr->cmd3) == 0))
cmdptr3 = cmdptr; cmdptr3 = cmdptr;
} }

View file

@ -2390,7 +2390,7 @@ RCreateServiceW(
(lpServiceStartName)) (lpServiceStartName))
{ {
/* We allow LocalSystem to run interactive. */ /* We allow LocalSystem to run interactive. */
if (wcsicmp(lpServiceStartName, L"LocalSystem")) if (_wcsicmp(lpServiceStartName, L"LocalSystem"))
{ {
return ERROR_INVALID_PARAMETER; return ERROR_INVALID_PARAMETER;
} }

View file

@ -84,7 +84,7 @@ static BOOL SdbpMatchFileAttributes(PDB pdb, TAGID matching_file, PATTRINFO attr
break; break;
case TAG_TYPE_STRINGREF: case TAG_TYPE_STRINGREF:
lpval = SdbGetStringTagPtr(pdb, child); lpval = SdbGetStringTagPtr(pdb, child);
if (!lpval || wcsicmp(attr->lpattr, lpval)) if (!lpval || _wcsicmp(attr->lpattr, lpval))
return FALSE; return FALSE;
break; break;
case TAG_TYPE_QWORD: case TAG_TYPE_QWORD:
@ -519,7 +519,7 @@ BOOL WINAPI SdbGetMatchingExe(HSDB hsdb, LPCWSTR path, LPCWSTR module_name,
name = SdbFindFirstTag(pdb, iter, TAG_NAME); name = SdbFindFirstTag(pdb, iter, TAG_NAME);
/* If this is a malformed DB, (no TAG_NAME), we should not crash. */ /* If this is a malformed DB, (no TAG_NAME), we should not crash. */
foundName = SdbGetStringTagPtr(pdb, name); foundName = SdbGetStringTagPtr(pdb, name);
if (foundName && !wcsicmp(foundName, file_name)) if (foundName && !_wcsicmp(foundName, file_name))
{ {
/* Get information about executable required to match it with database entry */ /* Get information about executable required to match it with database entry */
if (!attribs) if (!attribs)

View file

@ -287,7 +287,7 @@ BOOL SdbpMatchLayer(PCWSTR start, PCWSTR end, PCWSTR compare)
{ {
size_t len; size_t len;
if (!end) if (!end)
return !wcsicmp(start, compare); return !_wcsicmp(start, compare);
len = end - start; len = end - start;
return wcslen(compare) == len && !_wcsnicmp(start, compare, len); return wcslen(compare) == len && !_wcsnicmp(start, compare, len);
} }

View file

@ -553,7 +553,7 @@ TAGID WINAPI SdbFindFirstNamedTag(PDB pdb, TAGID root, TAGID find, TAGID nametag
if (tmp != TAGID_NULL) if (tmp != TAGID_NULL)
{ {
LPCWSTR name = SdbGetStringTagPtr(pdb, tmp); LPCWSTR name = SdbGetStringTagPtr(pdb, tmp);
if (name && !wcsicmp(name, find_name)) if (name && !_wcsicmp(name, find_name))
return iter; return iter;
} }
iter = SdbFindNextTag(pdb, root, iter); iter = SdbFindNextTag(pdb, root, iter);

View file

@ -51,7 +51,7 @@ BOOL WINAPI SHIM_OBJ_NAME(FreeLibrary)(HMODULE hModule)
} }
for (n = 0; n < g_NameCount; ++n) for (n = 0; n < g_NameCount; ++n)
{ {
if (!stricmp(g_Names[n], ModuleName)) if (!_stricmp(g_Names[n], ModuleName))
{ {
SHIM_INFO("Prevented unload of %s\n", ModuleName); SHIM_INFO("Prevented unload of %s\n", ModuleName);
if (Ptr && Ptr != Buffer) if (Ptr && Ptr != Buffer)

View file

@ -31,7 +31,7 @@ IsShortcut(HKEY hKey)
if (Type != REG_SZ) if (Type != REG_SZ)
return FALSE; return FALSE;
return (wcsicmp(Value, L"yes") == 0); return (_wcsicmp(Value, L"yes") == 0);
} }
BOOL BOOL

View file

@ -236,7 +236,7 @@ DisplayApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
for (i = 0; i < _countof(PropPages); i++) for (i = 0; i < _countof(PropPages); i++)
{ {
if (pwszSelectedTab && wcsicmp(pwszSelectedTab, PropPages[i].Name) == 0) if (pwszSelectedTab && _wcsicmp(pwszSelectedTab, PropPages[i].Name) == 0)
psh.nStartPage = i; psh.nStartPage = i;
/* Override the background page if requested by a shell extension */ /* Override the background page if requested by a shell extension */

View file

@ -365,7 +365,7 @@ BOOL IsGenericSystemName(PCWSTR ven, PCWSTR dev, BOOL * bRemove)
} }
else else
{ {
bMatch = !wcsicmp(ven, Vendors[i].pwName); bMatch = !_wcsicmp(ven, Vendors[i].pwName);
} }
if (bMatch) if (bMatch)
{ {
@ -389,7 +389,7 @@ BOOL IsGenericSystemName(PCWSTR ven, PCWSTR dev, BOOL * bRemove)
} }
else else
{ {
bMatch = !wcsicmp(dev, Devices[i].pwName); bMatch = !_wcsicmp(dev, Devices[i].pwName);
} }
if (bMatch) if (bMatch)
{ {
@ -430,7 +430,7 @@ void AppendSystemFamily(PWSTR pBuf, SIZE_T cchBuf, PCHAR * DmiStrings, PWSTR dev
if (wcsistr(dev, wideStr) == NULL && if (wcsistr(dev, wideStr) == NULL &&
(!Aliases[i] || wcsistr(dev, Aliases[i]) == NULL) && (!Aliases[i] || wcsistr(dev, Aliases[i]) == NULL) &&
DmiStrings[SYS_FAMILY] != NULL && DmiStrings[SYS_FAMILY] != NULL &&
!stricmp(DmiStrings[SYS_FAMILY], KnownFamilies[i])) !_stricmp(DmiStrings[SYS_FAMILY], KnownFamilies[i]))
{ {
if (wcslen(pBuf) > 0 && wcslen(dev) > 0) if (wcslen(pBuf) > 0 && wcslen(dev) > 0)
{ {
@ -746,7 +746,7 @@ BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf)
} }
// workaround for LENOVO notebooks // workaround for LENOVO notebooks
if (!wcsicmp(ven, L"LENOVO")) if (!_wcsicmp(ven, L"LENOVO"))
{ {
StringCchCopyW(ven, _countof(ven), L"Lenovo"); StringCchCopyW(ven, _countof(ven), L"Lenovo");
@ -812,9 +812,9 @@ BOOL GetSystemName(PWSTR pBuf, SIZE_T cchBuf)
{ {
if (DmiStrings[SYS_PRODUCT] != NULL && if (DmiStrings[SYS_PRODUCT] != NULL &&
DmiStrings[SYS_VERSION] != NULL && DmiStrings[SYS_VERSION] != NULL &&
(!stricmp(DmiStrings[SYS_PRODUCT], "Tablet PC") || (!_stricmp(DmiStrings[SYS_PRODUCT], "Tablet PC") ||
!stricmp(DmiStrings[SYS_PRODUCT], "Notebook") || !_stricmp(DmiStrings[SYS_PRODUCT], "Notebook") ||
!stricmp(DmiStrings[SYS_PRODUCT], "Decktop"))) !_stricmp(DmiStrings[SYS_PRODUCT], "Decktop")))
{ {
GetSMBiosStringW(DmiStrings[SYS_VERSION], dev, _countof(dev), TRUE); GetSMBiosStringW(DmiStrings[SYS_VERSION], dev, _countof(dev), TRUE);
} }

View file

@ -761,7 +761,7 @@ NTSTATUS find_actctx_dll( PUNICODE_STRING pnameW, LPWSTR *fullname, PUNICODE_STR
DWORD dirlen = info->ulAssemblyDirectoryNameLength / sizeof(WCHAR); DWORD dirlen = info->ulAssemblyDirectoryNameLength / sizeof(WCHAR);
p++; p++;
if (!info->lpAssemblyDirectoryName || _wcsnicmp( p, info->lpAssemblyDirectoryName, dirlen ) || wcsicmp( p + dirlen, dotManifestW )) if (!info->lpAssemblyDirectoryName || _wcsnicmp( p, info->lpAssemblyDirectoryName, dirlen ) || _wcsicmp( p + dirlen, dotManifestW ))
{ {
/* manifest name does not match directory name, so it's not a global /* manifest name does not match directory name, so it's not a global
* windows/winsxs manifest; use the manifest directory name instead */ * windows/winsxs manifest; use the manifest directory name instead */

View file

@ -72,7 +72,7 @@ BOOL IsBuiltinLayer(PCWSTR Name)
for (n = 0; g_Layers[n].Name; ++n) for (n = 0; g_Layers[n].Name; ++n)
{ {
if (!wcsicmp(g_Layers[n].Name, Name)) if (!_wcsicmp(g_Layers[n].Name, Name))
{ {
return TRUE; return TRUE;
} }
@ -80,7 +80,7 @@ BOOL IsBuiltinLayer(PCWSTR Name)
for (n = 0; g_CompatModes[n].Name; ++n) for (n = 0; g_CompatModes[n].Name; ++n)
{ {
if (!wcsicmp(g_CompatModes[n].Name, Name)) if (!_wcsicmp(g_CompatModes[n].Name, Name))
{ {
return TRUE; return TRUE;
} }
@ -159,7 +159,7 @@ HRESULT CLayerUIPropPage::InitFile(PCWSTR Filename)
ACDBG(L"Failed to find an extension: '%s'\r\n", (PCWSTR)ExpandedFilename); ACDBG(L"Failed to find an extension: '%s'\r\n", (PCWSTR)ExpandedFilename);
return E_FAIL; return E_FAIL;
} }
if (!wcsicmp(pwszExt, L".lnk")) if (!_wcsicmp(pwszExt, L".lnk"))
{ {
WCHAR Buffer[MAX_PATH]; WCHAR Buffer[MAX_PATH];
if (!GetExeFromLnk(ExpandedFilename, Buffer, _countof(Buffer))) if (!GetExeFromLnk(ExpandedFilename, Buffer, _countof(Buffer)))
@ -167,7 +167,7 @@ HRESULT CLayerUIPropPage::InitFile(PCWSTR Filename)
ACDBG(L"Failed to read link target from: '%s'\r\n", (PCWSTR)ExpandedFilename); ACDBG(L"Failed to read link target from: '%s'\r\n", (PCWSTR)ExpandedFilename);
return E_FAIL; return E_FAIL;
} }
if (!wcsicmp(Buffer, ExpandedFilename)) if (!_wcsicmp(Buffer, ExpandedFilename))
{ {
ACDBG(L"Link redirects to itself: '%s'\r\n", (PCWSTR)ExpandedFilename); ACDBG(L"Link redirects to itself: '%s'\r\n", (PCWSTR)ExpandedFilename);
return E_FAIL; return E_FAIL;
@ -197,7 +197,7 @@ HRESULT CLayerUIPropPage::InitFile(PCWSTR Filename)
for (size_t n = 0; g_AllowedExtensions[n]; ++n) for (size_t n = 0; g_AllowedExtensions[n]; ++n)
{ {
if (!wcsicmp(g_AllowedExtensions[n], pwszExt)) if (!_wcsicmp(g_AllowedExtensions[n], pwszExt))
{ {
m_Filename = ExpandedFilename; m_Filename = ExpandedFilename;
ACDBG(L"Got: %s\r\n", (PCWSTR)ExpandedFilename); ACDBG(L"Got: %s\r\n", (PCWSTR)ExpandedFilename);
@ -225,7 +225,7 @@ static BOOL GetLayerInfo(PCWSTR Filename, DWORD QueryFlags, PDWORD OSMode, PDWOR
size_t n; size_t n;
for (n = 0; g_Layers[n].Name; ++n) for (n = 0; g_Layers[n].Name; ++n)
{ {
if (!wcsicmp(g_Layers[n].Name, Layer)) if (!_wcsicmp(g_Layers[n].Name, Layer))
{ {
*Enabledlayers |= (1<<n); *Enabledlayers |= (1<<n);
break; break;
@ -237,7 +237,7 @@ static BOOL GetLayerInfo(PCWSTR Filename, DWORD QueryFlags, PDWORD OSMode, PDWOR
for (n = 0; g_CompatModes[n].Name; ++n) for (n = 0; g_CompatModes[n].Name; ++n)
{ {
if (!wcsicmp(g_CompatModes[n].Name, Layer)) if (!_wcsicmp(g_CompatModes[n].Name, Layer))
{ {
*OSMode = n+1; *OSMode = n+1;
break; break;

View file

@ -285,7 +285,7 @@ STDMETHODIMP CFontExt::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1, PCUID
result = (int)fontEntry1->Index - (int)fontEntry2->Index; result = (int)fontEntry1->Index - (int)fontEntry2->Index;
break; break;
case FONTEXT_COL_FILENAME: case FONTEXT_COL_FILENAME:
result = wcsicmp(PathFindFileNameW(info1->File()), PathFindFileNameW(info2->File())); result = _wcsicmp(PathFindFileNameW(info1->File()), PathFindFileNameW(info2->File()));
break; break;
case FONTEXT_COL_SIZE: case FONTEXT_COL_SIZE:
result = (int)info1->FileSize().HighPart - info2->FileSize().HighPart; result = (int)info1->FileSize().HighPart - info2->FileSize().HighPart;

View file

@ -605,7 +605,7 @@ CheckForCurrentHostname(CONST CHAR * Name, PFIXED_INFO network_info)
TempName = RtlAllocateHeap(RtlGetProcessHeap(), 0, 1); TempName = RtlAllocateHeap(RtlGetProcessHeap(), 0, 1);
TempName[0] = 0; TempName[0] = 0;
} }
Found = !stricmp(Name, network_info->HostName) || !stricmp(Name, TempName); Found = !_stricmp(Name, network_info->HostName) || !_stricmp(Name, TempName);
RtlFreeHeap(RtlGetProcessHeap(), 0, TempName); RtlFreeHeap(RtlGetProcessHeap(), 0, TempName);
if (!Found) if (!Found)
{ {

View file

@ -5,7 +5,7 @@
* PURPOSE: Volume format * PURPOSE: Volume format
* *
* PROGRAMMERS: Emanuele Aliberti * PROGRAMMERS: Emanuele Aliberti
* Hervé Poussineau (hpoussin@reactos.org) * Hervé Poussineau (hpoussin@reactos.org)
*/ */
#include "precomp.h" #include "precomp.h"
@ -91,7 +91,7 @@ FormatEx(
RtlInitUnicodeString(&usLabel, Label); RtlInitUnicodeString(&usLabel, Label);
/* Set the BackwardCompatible flag in case we format with older FAT12/16 */ /* Set the BackwardCompatible flag in case we format with older FAT12/16 */
if (wcsicmp(Format, L"FAT") == 0) if (_wcsicmp(Format, L"FAT") == 0)
BackwardCompatible = TRUE; BackwardCompatible = TRUE;
// else if (wcsicmp(Format, L"FAT32") == 0) // else if (wcsicmp(Format, L"FAT32") == 0)
// BackwardCompatible = FALSE; // BackwardCompatible = FALSE;

View file

@ -430,7 +430,7 @@ int CHString::CompareNoCase(CHSTRING_LPCWSTR lpsz) const
{ {
// Just call the deprecated function here - no matter we are null terminated // Just call the deprecated function here - no matter we are null terminated
// Did you read my statement about how safe is this implementation? // Did you read my statement about how safe is this implementation?
return wcsicmp(reinterpret_cast<LPCWSTR>(m_pchData), reinterpret_cast<LPCWSTR>(lpsz)); return _wcsicmp(reinterpret_cast<LPCWSTR>(m_pchData), reinterpret_cast<LPCWSTR>(lpsz));
} }
/* /*

View file

@ -219,11 +219,11 @@ DWORD getICMPStats(MIB_ICMP *stats)
do { do {
ptr = fgets(buf, sizeof(buf), fp); ptr = fgets(buf, sizeof(buf), fp);
} while (ptr && strncasecmp(buf, hdr, sizeof(hdr) - 1)); } while (ptr && _strnicmp(buf, hdr, sizeof(hdr) - 1));
if (ptr) { if (ptr) {
/* last line was a header, get another */ /* last line was a header, get another */
ptr = fgets(buf, sizeof(buf), fp); ptr = fgets(buf, sizeof(buf), fp);
if (ptr && strncasecmp(buf, hdr, sizeof(hdr) - 1) == 0) { if (ptr && _strnicmp(buf, hdr, sizeof(hdr) - 1) == 0) {
char *endPtr; char *endPtr;
ptr += sizeof(hdr); ptr += sizeof(hdr);

View file

@ -21,7 +21,7 @@
* FILE: dll/win32/msgina/msgina.c * FILE: dll/win32/msgina/msgina.c
* PURPOSE: ReactOS Logon GINA DLL * PURPOSE: ReactOS Logon GINA DLL
* PROGRAMMER: Thomas Weidenmueller (w3seek@users.sourceforge.net) * PROGRAMMER: Thomas Weidenmueller (w3seek@users.sourceforge.net)
* Hervé Poussineau (hpoussin@reactos.org) * Hervé Poussineau (hpoussin@reactos.org)
*/ */
#include "msgina.h" #include "msgina.h"
@ -141,7 +141,7 @@ ChooseGinaUI(VOID)
NextOption = wcschr(CurrentOption, L' '); NextOption = wcschr(CurrentOption, L' ');
if (NextOption) if (NextOption)
*NextOption = L'\0'; *NextOption = L'\0';
if (wcsicmp(CurrentOption, L"CONSOLE") == 0) if (_wcsicmp(CurrentOption, L"CONSOLE") == 0)
{ {
TRACE("Found %S. Switching to console boot\n", CurrentOption); TRACE("Found %S. Switching to console boot\n", CurrentOption);
ConsoleBoot = TRUE; ConsoleBoot = TRUE;

View file

@ -413,8 +413,8 @@ CheckForChangedNames(
{ {
INT nShow = SW_HIDE; INT nShow = SW_HIDE;
if ((wcsicmp(pNetIdData->szOldHostName, pNetIdData->szHostName) != 0) || if ((_wcsicmp(pNetIdData->szOldHostName, pNetIdData->szHostName) != 0) ||
(wcsicmp(pNetIdData->szOldDomainName, pNetIdData->szDomainName) != 0)) (_wcsicmp(pNetIdData->szOldDomainName, pNetIdData->szDomainName) != 0))
{ {
nShow = SW_SHOW; nShow = SW_SHOW;
} }

View file

@ -1063,7 +1063,7 @@ AccpOpenNamedObject(LPWSTR pObjectName,
i != sizeof(AccRegRootKeys) / sizeof(AccRegRootKeys[0]); i != sizeof(AccRegRootKeys) / sizeof(AccRegRootKeys[0]);
i++) i++)
{ {
if (!wcsicmp(lpRootKeyName, if (!_wcsicmp(lpRootKeyName,
AccRegRootKeys[i].szRootKey)) AccRegRootKeys[i].szRootKey))
{ {
hRootKey = AccRegRootKeys[i].hRootKey; hRootKey = AccRegRootKeys[i].hRootKey;

View file

@ -334,7 +334,7 @@ void CDefaultContextMenu::AddStaticEntry(const HKEY hkeyClass, const WCHAR *szVe
TRACE("adding verb %s\n", debugstr_w(szVerb)); TRACE("adding verb %s\n", debugstr_w(szVerb));
if (!wcsicmp(szVerb, L"open") && !(uFlags & CMF_NODEFAULT)) if (!_wcsicmp(szVerb, L"open") && !(uFlags & CMF_NODEFAULT))
{ {
/* open verb is always inserted in front */ /* open verb is always inserted in front */
m_StaticEntries.AddHead({ szVerb, hkeyClass }); m_StaticEntries.AddHead({ szVerb, hkeyClass });

View file

@ -194,7 +194,7 @@ CNewMenu::CacheItems()
if (pNewItem) if (pNewItem)
{ {
dwSize += wcslen(wszName) + 1; dwSize += wcslen(wszName) + 1;
if (!m_pLinkItem && wcsicmp(pNewItem->pwszExt, L".lnk") == 0) if (!m_pLinkItem && _wcsicmp(pNewItem->pwszExt, L".lnk") == 0)
{ {
/* The unique link handler */ /* The unique link handler */
m_pLinkItem = pNewItem; m_pLinkItem = pNewItem;
@ -277,7 +277,7 @@ CNewMenu::LoadCachedItems()
pNewItem = LoadItem(wszName); pNewItem = LoadItem(wszName);
if (pNewItem) if (pNewItem)
{ {
if (!m_pLinkItem && wcsicmp(pNewItem->pwszExt, L".lnk") == 0) if (!m_pLinkItem && _wcsicmp(pNewItem->pwszExt, L".lnk") == 0)
{ {
/* The unique link handler */ /* The unique link handler */
m_pLinkItem = pNewItem; m_pLinkItem = pNewItem;

View file

@ -204,7 +204,7 @@ BOOL COpenWithList::SaveApp(SApp *pApp)
COpenWithList::SApp *COpenWithList::Find(LPCWSTR pwszFilename) COpenWithList::SApp *COpenWithList::Find(LPCWSTR pwszFilename)
{ {
for (UINT i = 0; i < m_cApp; ++i) for (UINT i = 0; i < m_cApp; ++i)
if (wcsicmp(m_pApp[i].wszFilename, pwszFilename) == 0) if (_wcsicmp(m_pApp[i].wszFilename, pwszFilename) == 0)
return &m_pApp[i]; return &m_pApp[i];
return NULL; return NULL;
} }

View file

@ -2989,7 +2989,7 @@ LRESULT CShellLink::OnNotify(HWND hwndDlg, int idFrom, LPNMHDR pnmhdr)
PathUnquoteSpacesW(unquoted); PathUnquoteSpacesW(unquoted);
WCHAR *pwszExt = PathFindExtensionW(unquoted); WCHAR *pwszExt = PathFindExtensionW(unquoted);
if (!wcsicmp(pwszExt, L".lnk")) if (!_wcsicmp(pwszExt, L".lnk"))
{ {
// FIXME load localized error msg // FIXME load localized error msg
MessageBoxW(hwndDlg, L"You cannot create a link to a shortcut", L"Error", MB_ICONERROR); MessageBoxW(hwndDlg, L"You cannot create a link to a shortcut", L"Error", MB_ICONERROR);

View file

@ -925,7 +925,7 @@ Continue:
if (pszLatest) if (pszLatest)
{ {
if (wcsicmp(pszCmd, pszLatest) == 0) if (_wcsicmp(pszCmd, pszLatest) == 0)
{ {
SendMessageW(hCb, CB_INSERTSTRING, 0, (LPARAM)pszCmd); SendMessageW(hCb, CB_INSERTSTRING, 0, (LPARAM)pszCmd);
SetWindowTextW(hCb, pszCmd); SetWindowTextW(hCb, pszCmd);

View file

@ -58,7 +58,7 @@ IsSystemDrive(PFORMAT_DRIVE_CONTEXT pContext)
if (!GetEnvironmentVariableW(L"SystemDrive", wszSystemDrv, _countof(wszSystemDrv))) if (!GetEnvironmentVariableW(L"SystemDrive", wszSystemDrv, _countof(wszSystemDrv)))
return FALSE; return FALSE;
if (!wcsicmp(wszDriveLetter, wszSystemDrv)) if (!_wcsicmp(wszDriveLetter, wszSystemDrv))
return TRUE; return TRUE;
return FALSE; return FALSE;
@ -69,8 +69,8 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
{ {
DWORD ClusterSize; DWORD ClusterSize;
if (!wcsicmp(szFs, L"FAT16") || if (!_wcsicmp(szFs, L"FAT16") ||
!wcsicmp(szFs, L"FAT")) // REACTOS HACK !_wcsicmp(szFs, L"FAT")) // REACTOS HACK
{ {
if (TotalNumberOfBytes->QuadPart <= (16 * 1024 * 1024)) if (TotalNumberOfBytes->QuadPart <= (16 * 1024 * 1024))
ClusterSize = 2048; ClusterSize = 2048;
@ -93,7 +93,7 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
else else
return FALSE; return FALSE;
} }
else if (!wcsicmp(szFs, L"FAT32")) else if (!_wcsicmp(szFs, L"FAT32"))
{ {
if (TotalNumberOfBytes->QuadPart <= (64 * 1024 * 1024)) if (TotalNumberOfBytes->QuadPart <= (64 * 1024 * 1024))
ClusterSize = 512; ClusterSize = 512;
@ -110,7 +110,7 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
else else
return FALSE; return FALSE;
} }
else if (!wcsicmp(szFs, L"FATX")) else if (!_wcsicmp(szFs, L"FATX"))
{ {
if (TotalNumberOfBytes->QuadPart <= (16 * 1024 * 1024)) if (TotalNumberOfBytes->QuadPart <= (16 * 1024 * 1024))
ClusterSize = 2048; ClusterSize = 2048;
@ -131,7 +131,7 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
else else
return FALSE; return FALSE;
} }
else if (!wcsicmp(szFs, L"NTFS")) else if (!_wcsicmp(szFs, L"NTFS"))
{ {
if (TotalNumberOfBytes->QuadPart <= (512 * 1024 * 1024)) if (TotalNumberOfBytes->QuadPart <= (512 * 1024 * 1024))
ClusterSize = 512; ClusterSize = 512;
@ -142,12 +142,12 @@ GetDefaultClusterSize(LPWSTR szFs, PDWORD pClusterSize, PULARGE_INTEGER TotalNum
else else
ClusterSize = 2048; ClusterSize = 2048;
} }
else if (!wcsicmp(szFs, L"EXT2")) else if (!_wcsicmp(szFs, L"EXT2"))
{ {
// auto block size calculation // auto block size calculation
ClusterSize = 0; ClusterSize = 0;
} }
else if (!wcsicmp(szFs, L"BtrFS")) else if (!_wcsicmp(szFs, L"BtrFS"))
{ {
// auto block size calculation // auto block size calculation
ClusterSize = 0; ClusterSize = 0;
@ -304,24 +304,24 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
if (!GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailableUser, &TotalNumberOfBytes, NULL)) if (!GetDiskFreeSpaceExW(szDrive, &FreeBytesAvailableUser, &TotalNumberOfBytes, NULL))
return; return;
if (!wcsicmp(wszBuf, L"FAT16") || if (!_wcsicmp(wszBuf, L"FAT16") ||
!wcsicmp(wszBuf, L"FAT")) // REACTOS HACK !_wcsicmp(wszBuf, L"FAT")) // REACTOS HACK
{ {
pwszFsSizeLimit = L"4GB"; pwszFsSizeLimit = L"4GB";
} }
else if (!wcsicmp(wszBuf, L"FAT32")) else if (!_wcsicmp(wszBuf, L"FAT32"))
{ {
pwszFsSizeLimit = L"32GB"; pwszFsSizeLimit = L"32GB";
} }
else if (!wcsicmp(wszBuf, L"FATX")) else if (!_wcsicmp(wszBuf, L"FATX"))
{ {
pwszFsSizeLimit = L"1GB/32GB"; pwszFsSizeLimit = L"1GB/32GB";
} }
else if (!wcsicmp(wszBuf, L"NTFS")) else if (!_wcsicmp(wszBuf, L"NTFS"))
{ {
pwszFsSizeLimit = L"256TB"; pwszFsSizeLimit = L"256TB";
} }
else if (!wcsicmp(wszBuf, L"EXT2")) else if (!_wcsicmp(wszBuf, L"EXT2"))
{ {
pwszFsSizeLimit = L"32TB"; pwszFsSizeLimit = L"32TB";
} }
@ -330,13 +330,13 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
pwszFsSizeLimit = L"16EB"; pwszFsSizeLimit = L"16EB";
} }
if (!wcsicmp(wszBuf, L"FAT16") || if (!_wcsicmp(wszBuf, L"FAT16") ||
!wcsicmp(wszBuf, L"FAT") || // REACTOS HACK !_wcsicmp(wszBuf, L"FAT") || // REACTOS HACK
!wcsicmp(wszBuf, L"FAT32") || !_wcsicmp(wszBuf, L"FAT32") ||
!wcsicmp(wszBuf, L"FATX") || !_wcsicmp(wszBuf, L"FATX") ||
!wcsicmp(wszBuf, L"NTFS") || !_wcsicmp(wszBuf, L"NTFS") ||
!wcsicmp(wszBuf, L"EXT2") || !_wcsicmp(wszBuf, L"EXT2") ||
!wcsicmp(wszBuf, L"BtrFS")) !_wcsicmp(wszBuf, L"BtrFS"))
{ {
if (!GetDefaultClusterSize(wszBuf, &ClusterSize, &TotalNumberOfBytes)) if (!GetDefaultClusterSize(wszBuf, &ClusterSize, &TotalNumberOfBytes))
{ {
@ -355,7 +355,7 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0); SendMessageW(hDlgCtrl, CB_SETCURSEL, 0, 0);
} }
if (!wcsicmp(wszBuf, L"NTFS")) if (!_wcsicmp(wszBuf, L"NTFS"))
{ {
ClusterSize = 512; ClusterSize = 512;
for (lIndex = 0; lIndex < 4; lIndex++) for (lIndex = 0; lIndex < 4; lIndex++)
@ -372,9 +372,9 @@ InsertDefaultClusterSizeForFs(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
} }
SendMessageW(GetDlgItem(hwndDlg, 28675), BM_SETCHECK, BST_UNCHECKED, 0); SendMessageW(GetDlgItem(hwndDlg, 28675), BM_SETCHECK, BST_UNCHECKED, 0);
if (!wcsicmp(wszBuf, L"EXT2") || if (!_wcsicmp(wszBuf, L"EXT2") ||
!wcsicmp(wszBuf, L"BtrFS") || !_wcsicmp(wszBuf, L"BtrFS") ||
!wcsicmp(wszBuf, L"NTFS")) !_wcsicmp(wszBuf, L"NTFS"))
{ {
/* Enable the "Enable Compression" button */ /* Enable the "Enable Compression" button */
EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE); EnableWindow(GetDlgItem(hwndDlg, 28675), TRUE);
@ -454,7 +454,7 @@ InitializeFormatDriveDlg(HWND hwndDlg, PFORMAT_DRIVE_CONTEXT pContext)
while(QueryAvailableFileSystemFormat(dwIndex, szText, &uMajor, &uMinor, &Latest)) while(QueryAvailableFileSystemFormat(dwIndex, szText, &uMajor, &uMinor, &Latest))
{ {
if (!wcsicmp(szText, szFs)) if (!_wcsicmp(szText, szFs))
dwDefault = dwIndex; dwDefault = dwIndex;
SendMessageW(hwndFileSystems, CB_ADDSTRING, 0, (LPARAM)szText); SendMessageW(hwndFileSystems, CB_ADDSTRING, 0, (LPARAM)szText);

View file

@ -613,7 +613,7 @@ HRESULT CFSDropTarget::_DoDrop(IDataObject *pDataObject,
// Check to see if the source is a link // Check to see if the source is a link
BOOL fSourceIsLink = FALSE; BOOL fSourceIsLink = FALSE;
if (!wcsicmp(PathFindExtensionW(targetName), L".lnk") && (att & (SFGAO_FOLDER | SFGAO_STREAM)) != SFGAO_FOLDER) if (!_wcsicmp(PathFindExtensionW(targetName), L".lnk") && (att & (SFGAO_FOLDER | SFGAO_STREAM)) != SFGAO_FOLDER)
{ {
fSourceIsLink = TRUE; fSourceIsLink = TRUE;
PathRemoveExtensionW(wszCombined); PathRemoveExtensionW(wszCombined);

View file

@ -345,10 +345,10 @@ HRESULT WINAPI CControlPanelFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE
switch(LOWORD(lParam)) switch(LOWORD(lParam))
{ {
case CONTROLPANEL_COL_NAME: case CONTROLPANEL_COL_NAME:
result = wcsicmp(pData1->szName + pData1->offsDispName, pData2->szName + pData2->offsDispName); result = _wcsicmp(pData1->szName + pData1->offsDispName, pData2->szName + pData2->offsDispName);
break; break;
case CONTROLPANEL_COL_COMMENT: case CONTROLPANEL_COL_COMMENT:
result = wcsicmp(pData1->szName + pData1->offsComment, pData2->szName + pData2->offsComment); result = _wcsicmp(pData1->szName + pData1->offsComment, pData2->szName + pData2->offsComment);
break; break;
default: default:
ERR("Got wrong lParam!\n"); ERR("Got wrong lParam!\n");

View file

@ -847,7 +847,7 @@ HRESULT WINAPI CDrivesFolder::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1
{ {
case IDS_SHV_COLUMN_NAME: case IDS_SHV_COLUMN_NAME:
{ {
result = stricmp(pszDrive1, pszDrive2); result = _stricmp(pszDrive1, pszDrive2);
hres = MAKE_COMPARE_HRESULT(result); hres = MAKE_COMPARE_HRESULT(result);
break; break;
} }

View file

@ -1086,7 +1086,7 @@ HRESULT WINAPI CFSFolder::CompareIDs(LPARAM lParam,
switch (LOWORD(lParam)) switch (LOWORD(lParam))
{ {
case SHFSF_COL_NAME: case SHFSF_COL_NAME:
result = wcsicmp(pDataW1->wszName, pDataW2->wszName); result = _wcsicmp(pDataW1->wszName, pDataW2->wszName);
break; break;
case SHFSF_COL_SIZE: case SHFSF_COL_SIZE:
if (pData1->u.file.dwFileSize > pData2->u.file.dwFileSize) if (pData1->u.file.dwFileSize > pData2->u.file.dwFileSize)
@ -1099,7 +1099,7 @@ HRESULT WINAPI CFSFolder::CompareIDs(LPARAM lParam,
case SHFSF_COL_TYPE: case SHFSF_COL_TYPE:
pExtension1 = PathFindExtensionW(pDataW1->wszName); pExtension1 = PathFindExtensionW(pDataW1->wszName);
pExtension2 = PathFindExtensionW(pDataW2->wszName); pExtension2 = PathFindExtensionW(pDataW2->wszName);
result = wcsicmp(pExtension1, pExtension2); result = _wcsicmp(pExtension1, pExtension2);
break; break;
case SHFSF_COL_MDATE: case SHFSF_COL_MDATE:
result = pData1->u.file.uFileDate - pData2->u.file.uFileDate; result = pData1->u.file.uFileDate - pData2->u.file.uFileDate;

View file

@ -546,10 +546,10 @@ HRESULT WINAPI CRecycleBin::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1,
case 0: /* Name */ case 0: /* Name */
pName1 = PathFindFileNameW(pData1->szName); pName1 = PathFindFileNameW(pData1->szName);
pName2 = PathFindFileNameW(pData2->szName); pName2 = PathFindFileNameW(pData2->szName);
result = wcsicmp(pName1, pName2); result = _wcsicmp(pName1, pName2);
break; break;
case 1: /* Orig. Location */ case 1: /* Orig. Location */
result = wcsicmp(pData1->szName, pData2->szName); result = _wcsicmp(pData1->szName, pData2->szName);
break; break;
case 2: /* Date Deleted */ case 2: /* Date Deleted */
result = CompareFileTime(&pData1->DeletionTime, &pData2->DeletionTime); result = CompareFileTime(&pData1->DeletionTime, &pData2->DeletionTime);
@ -560,7 +560,7 @@ HRESULT WINAPI CRecycleBin::CompareIDs(LPARAM lParam, PCUIDLIST_RELATIVE pidl1,
case 4: /* Type */ case 4: /* Type */
pName1 = PathFindExtensionW(pData1->szName); pName1 = PathFindExtensionW(pData1->szName);
pName2 = PathFindExtensionW(pData2->szName); pName2 = PathFindExtensionW(pData2->szName);
result = wcsicmp(pName1, pName2); result = _wcsicmp(pName1, pName2);
break; break;
case 5: /* Modified */ case 5: /* Modified */
result = CompareFileTime(&pData1->LastModification, &pData2->LastModification); result = CompareFileTime(&pData1->LastModification, &pData2->LastModification);

View file

@ -74,7 +74,7 @@ static INT CALLBACK SIC_CompareEntries( LPVOID p1, LPVOID p2, LPARAM lparam)
if ((e1->dwFlags & GIL_FORSHORTCUT) != (e2->dwFlags & GIL_FORSHORTCUT)) if ((e1->dwFlags & GIL_FORSHORTCUT) != (e2->dwFlags & GIL_FORSHORTCUT))
return ((e1->dwFlags & GIL_FORSHORTCUT) < (e2->dwFlags & GIL_FORSHORTCUT)) ? -1 : 1; return ((e1->dwFlags & GIL_FORSHORTCUT) < (e2->dwFlags & GIL_FORSHORTCUT)) ? -1 : 1;
return wcsicmp(e1->sSourceFile,e2->sSourceFile); return _wcsicmp(e1->sSourceFile,e2->sSourceFile);
} }
/* declare SIC_LoadOverlayIcon() */ /* declare SIC_LoadOverlayIcon() */

View file

@ -844,7 +844,7 @@ static UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpVerb,
while (*p == ' ' || *p == '\t') p++; while (*p == ' ' || *p == '\t') p++;
} }
if (wcsicmp(tok, &extension[1]) == 0) /* have to skip the leading "." */ if (_wcsicmp(tok, &extension[1]) == 0) /* have to skip the leading "." */
{ {
wcscpy(lpResult, xlpFile); wcscpy(lpResult, xlpFile);
/* Need to perhaps check that the file has a path /* Need to perhaps check that the file has a path

View file

@ -295,7 +295,7 @@ HRESULT SHELL32_CompareDetails(IShellFolder2* isf, LPARAM lParam, LPCITEMIDLIST
if (FAILED(hres)) if (FAILED(hres))
return MAKE_COMPARE_HRESULT(1); return MAKE_COMPARE_HRESULT(1);
int ret = wcsicmp(wszItem1, wszItem2); int ret = _wcsicmp(wszItem1, wszItem2);
if (ret == 0) if (ret == 0)
return SHELL32_CompareChildren(isf, lParam, pidl1, pidl2); return SHELL32_CompareChildren(isf, lParam, pidl1, pidl2);

View file

@ -848,7 +848,7 @@ IsConsoleBoot(VOID)
pwszNextOption = wcschr(pwszCurrentOption, L' '); pwszNextOption = wcschr(pwszCurrentOption, L' ');
if (pwszNextOption) if (pwszNextOption)
*pwszNextOption = L'\0'; *pwszNextOption = L'\0';
if (wcsicmp(pwszCurrentOption, L"CONSOLE") == 0) if (_wcsicmp(pwszCurrentOption, L"CONSOLE") == 0)
{ {
DPRINT("Found %S. Switching to console boot\n", pwszCurrentOption); DPRINT("Found %S. Switching to console boot\n", pwszCurrentOption);
bConsoleBoot = TRUE; bConsoleBoot = TRUE;

View file

@ -60,7 +60,7 @@ BOOL LoadRegistryMMEDrivers(char* key)
/* We look for mappers first so they don't match /* We look for mappers first so they don't match
something else later on! */ something else later on! */
if ( ! stricmp("wavemapper", value_name) ) if ( ! _stricmp("wavemapper", value_name) )
{ {
TRACE("Found a Wave-mapper: %s\n", value_data); TRACE("Found a Wave-mapper: %s\n", value_data);
/* Delay loading Wave mapper driver */ /* Delay loading Wave mapper driver */
@ -68,7 +68,7 @@ BOOL LoadRegistryMMEDrivers(char* key)
is_mapper = TRUE; is_mapper = TRUE;
driver_count ++; driver_count ++;
} }
else if ( ! stricmp("midimapper", value_name) ) else if ( ! _stricmp("midimapper", value_name) )
{ {
TRACE("Found a MIDI-mapper: %s\n", value_data); TRACE("Found a MIDI-mapper: %s\n", value_data);
/* Delay loading MIDI mapper driver */ /* Delay loading MIDI mapper driver */

View file

@ -777,7 +777,7 @@ KspAddObjectCreateItemToList(
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
if (!wcsicmp(ObjectClass, CreateEntry->CreateItem->ObjectClass.Buffer)) if (!_wcsicmp(ObjectClass, CreateEntry->CreateItem->ObjectClass.Buffer))
{ {
/* the same object class already exists */ /* the same object class already exists */
return STATUS_OBJECT_NAME_COLLISION; return STATUS_OBJECT_NAME_COLLISION;

View file

@ -372,7 +372,7 @@ KspCreateDeviceReference(
DeviceEntry = (PBUS_DEVICE_ENTRY)CONTAINING_RECORD(Entry, BUS_DEVICE_ENTRY, Entry); DeviceEntry = (PBUS_DEVICE_ENTRY)CONTAINING_RECORD(Entry, BUS_DEVICE_ENTRY, Entry);
/* check if name matches */ /* check if name matches */
if (!wcsicmp(DeviceEntry->DeviceName, DeviceName)) if (!_wcsicmp(DeviceEntry->DeviceName, DeviceName))
{ {
/* item already exists */ /* item already exists */
ItemExists = TRUE; ItemExists = TRUE;
@ -1941,7 +1941,7 @@ KsServiceBusEnumCreateRequest(
DeviceEntry = (PBUS_DEVICE_ENTRY)CONTAINING_RECORD(Entry, BUS_DEVICE_ENTRY, Entry); DeviceEntry = (PBUS_DEVICE_ENTRY)CONTAINING_RECORD(Entry, BUS_DEVICE_ENTRY, Entry);
/* check if name matches */ /* check if name matches */
if (!wcsicmp(DeviceEntry->DeviceName, IoStack->FileObject->FileName.Buffer + 1)) if (!_wcsicmp(DeviceEntry->DeviceName, IoStack->FileObject->FileName.Buffer + 1))
{ {
/* item already exists */ /* item already exists */
ItemExists = TRUE; ItemExists = TRUE;

View file

@ -179,7 +179,7 @@ ChanMgrGetChannelByName(IN PWCHAR Name,
ASSERT(NT_SUCCESS(Status1)); ASSERT(NT_SUCCESS(Status1));
/* Check if this is the name that was passed in */ /* Check if this is the name that was passed in */
Found = wcsicmp(Name, ChannelName); Found = _wcsicmp(Name, ChannelName);
SacFreePool(ChannelName); SacFreePool(ChannelName);
if (Found) if (Found)
{ {

View file

@ -122,7 +122,7 @@ static DWORD FindFlag(PCWSTR Name, WORD Dest)
{ {
if (g_Flags[n].wDest & Dest) if (g_Flags[n].wDest & Dest)
{ {
if (!wcsicmp(Name, g_Flags[n].szAbbr)) if (!_wcsicmp(Name, g_Flags[n].szAbbr))
{ {
return g_Flags[n].dwFlag; return g_Flags[n].dwFlag;
} }

View file

@ -314,15 +314,15 @@ static HRESULT AssocQ(int argc, WCHAR **argv)
return ErrMsg(hr); return ErrMsg(hr);
DWORD size = maxSize; DWORD size = maxSize;
if (!wcsicmp(argv[1], L"string")) if (!_wcsicmp(argv[1], L"string"))
{ {
if (!wcsicmp(argv[2], L"COMMAND")) if (!_wcsicmp(argv[2], L"COMMAND"))
qtype = ASSOCSTR_COMMAND; qtype = ASSOCSTR_COMMAND;
if (!wcsicmp(argv[2], L"EXECUTABLE")) if (!_wcsicmp(argv[2], L"EXECUTABLE"))
qtype = ASSOCSTR_EXECUTABLE; qtype = ASSOCSTR_EXECUTABLE;
if (!wcsicmp(argv[2], L"FRIENDLYDOCNAME") || !wcsicmp(argv[2], L"FriendlyTypeName")) if (!_wcsicmp(argv[2], L"FRIENDLYDOCNAME") || !_wcsicmp(argv[2], L"FriendlyTypeName"))
qtype = ASSOCSTR_FRIENDLYDOCNAME; qtype = ASSOCSTR_FRIENDLYDOCNAME;
if (!wcsicmp(argv[2], L"DEFAULTICON")) if (!_wcsicmp(argv[2], L"DEFAULTICON"))
qtype = ASSOCSTR_DEFAULTICON; qtype = ASSOCSTR_DEFAULTICON;
buf[0] = UNICODE_NULL; buf[0] = UNICODE_NULL;
@ -340,11 +340,11 @@ static HRESULT AssocQ(int argc, WCHAR **argv)
ErrMsg(hr); ErrMsg(hr);
} }
} }
else if (!wcsicmp(argv[1], L"data")) else if (!_wcsicmp(argv[1], L"data"))
{ {
if (!wcsicmp(argv[2], L"EDITFLAGS")) if (!_wcsicmp(argv[2], L"EDITFLAGS"))
qtype = ASSOCDATA_EDITFLAGS; qtype = ASSOCDATA_EDITFLAGS;
if (!wcsicmp(argv[2], L"VALUE")) if (!_wcsicmp(argv[2], L"VALUE"))
qtype = ASSOCDATA_VALUE; qtype = ASSOCDATA_VALUE;
hr = qa->GetData(qflags, (ASSOCDATA)qtype, extra, buf, &size); hr = qa->GetData(qflags, (ASSOCDATA)qtype, extra, buf, &size);
@ -359,7 +359,7 @@ static HRESULT AssocQ(int argc, WCHAR **argv)
ErrMsg(hr); ErrMsg(hr);
} }
} }
else if (!wcsicmp(argv[1], L"key")) else if (!_wcsicmp(argv[1], L"key"))
{ {
HKEY hKey = NULL; HKEY hKey = NULL;
hr = qa->GetKey(qflags, (ASSOCKEY)qtype, extra, &hKey); hr = qa->GetKey(qflags, (ASSOCKEY)qtype, extra, &hKey);
@ -632,7 +632,7 @@ static bool isCmdWithArg(int argc, WCHAR** argv, int& n, PCWSTR check, PCWSTR &a
static bool isCmd(int argc, WCHAR** argv, int n, PCWSTR check) static bool isCmd(int argc, WCHAR** argv, int n, PCWSTR check)
{ {
return !wcsicmp(argv[n] + 1, check); return !_wcsicmp(argv[n] + 1, check);
} }
extern "C" // and another hack for gcc extern "C" // and another hack for gcc

View file

@ -301,7 +301,7 @@ GetPnpKey(PHKEY PnpKey)
return lError; return lError;
} }
if (dwType == REG_SZ && stricmp(szBuffer, "pnp bios") == 0) if (dwType == REG_SZ && _stricmp(szBuffer, "pnp bios") == 0)
{ {
*PnpKey = hBusKey; *PnpKey = hBusKey;
RegCloseKey(hAdapterKey); RegCloseKey(hAdapterKey);

View file

@ -574,7 +574,7 @@ static void test_stringtable()
size = pSdbGetTagDataSize(pdb, tagstr); size = pSdbGetTagDataSize(pdb, tagstr);
ok(size == 4, "Expected datasize to be 4, was %u for %u/%u\n", size, j, n); ok(size == 4, "Expected datasize to be 4, was %u for %u/%u\n", size, j, n);
data = pSdbGetStringTagPtr(pdb, tagstr); data = pSdbGetStringTagPtr(pdb, tagstr);
ok(data && !wcsicmp(data, all[j]), "Expected data to be %s was %s for %u/%u\n", wine_dbgstr_w(all[j]), wine_dbgstr_w(data), j, n); ok(data && !_wcsicmp(data, all[j]), "Expected data to be %s was %s for %u/%u\n", wine_dbgstr_w(all[j]), wine_dbgstr_w(data), j, n);
} }
tagstr = pSdbFindNextTag(pdb, TAGID_ROOT, tagstr); tagstr = pSdbFindNextTag(pdb, TAGID_ROOT, tagstr);
} }
@ -600,7 +600,7 @@ static void test_stringtable()
expected_size = (lstrlenW(all[j])+1) * 2; expected_size = (lstrlenW(all[j])+1) * 2;
ok(size == expected_size, "Expected datasize to be %u, was %u for %u/%u\n", expected_size, size, j, n); ok(size == expected_size, "Expected datasize to be %u, was %u for %u/%u\n", expected_size, size, j, n);
data = pSdbGetStringTagPtr(pdb, tagstr); data = pSdbGetStringTagPtr(pdb, tagstr);
ok(data && !wcsicmp(data, all[j]), "Expected data to be %s was %s for %u/%u\n", wine_dbgstr_w(all[j]), wine_dbgstr_w(data), j, n); ok(data && !_wcsicmp(data, all[j]), "Expected data to be %s was %s for %u/%u\n", wine_dbgstr_w(all[j]), wine_dbgstr_w(data), j, n);
} }
tagstr = pSdbFindNextTag(pdb, TAGID_ROOT, tagstr); tagstr = pSdbFindNextTag(pdb, TAGID_ROOT, tagstr);
} }
@ -1489,8 +1489,8 @@ static void test_match_ex(const WCHAR* workdir, HSDB hsdb)
Vendor = pSdbGetStringTagPtr(pdb, tagid); Vendor = pSdbGetStringTagPtr(pdb, tagid);
if (!Vendor) if (!Vendor)
continue; continue;
Succeed = !wcsicmp(Vendor, L"Succeed"); Succeed = !_wcsicmp(Vendor, L"Succeed");
if (!Succeed && wcsicmp(Vendor, L"Fail")) if (!Succeed && _wcsicmp(Vendor, L"Fail"))
continue; continue;
tagid = pSdbFindFirstTag(pdb, exetag, TAG_APP_NAME); tagid = pSdbFindFirstTag(pdb, exetag, TAG_APP_NAME);
AppName = pSdbGetStringTagPtr(pdb, tagid); AppName = pSdbGetStringTagPtr(pdb, tagid);

View file

@ -164,7 +164,7 @@ _Out_opt_ PUINT PWriteEnd)
if (ExpectedCsidl == PIDL_PATH_EQUALS_PATH) if (ExpectedCsidl == PIDL_PATH_EQUALS_PATH)
{ {
ok(wcsicmp(pidlPathName, pidlPathTest) == 0, "Line %lu: Path from pidl does not match; pidlPathName=%S\n", TestLine, pidlPathName); ok(_wcsicmp(pidlPathName, pidlPathTest) == 0, "Line %lu: Path from pidl does not match; pidlPathName=%S\n", TestLine, pidlPathName);
} }
else if (ExpectedCsidl == PIDL_IS_EMPTY) else if (ExpectedCsidl == PIDL_IS_EMPTY)
{ {

View file

@ -688,7 +688,7 @@ TestModuleRegistry(
// TODO: Use SearchPath (or assume everything's in system32) and do a proper full path compare // TODO: Use SearchPath (or assume everything's in system32) and do a proper full path compare
PathStripPathW(data); PathStripPathW(data);
PathRemoveExtensionW(data); PathRemoveExtensionW(data);
ok(!wcsicmp(data, ModuleName), "Server is %ls, expected %ls for %s\n", data, ModuleName, class->name); ok(!_wcsicmp(data, ModuleName), "Server is %ls, expected %ls for %s\n", data, ModuleName, class->name);
} }
dataSize = sizeof(data); dataSize = sizeof(data);
@ -703,7 +703,7 @@ TestModuleRegistry(
expectedThreadingModel = class->ThreadingModel; expectedThreadingModel = class->ThreadingModel;
if (!expectedThreadingModel) if (!expectedThreadingModel)
expectedThreadingModel = L"Apartment"; expectedThreadingModel = L"Apartment";
ok(!wcsicmp(data, expectedThreadingModel), "Server is %ls, expected %ls for %s\n", data, expectedThreadingModel, class->name); ok(!_wcsicmp(data, expectedThreadingModel), "Server is %ls, expected %ls for %s\n", data, expectedThreadingModel, class->name);
} }
RegCloseKey(hKeyServer); RegCloseKey(hKeyServer);
@ -829,7 +829,7 @@ TestInterfaceRegistry(
expectedName++; expectedName++;
else else
expectedName = iface->wname; expectedName = iface->wname;
ok(!wcsicmp(data, expectedName), "Name is %ls, expected %ls\n", data, expectedName); ok(!_wcsicmp(data, expectedName), "Name is %ls, expected %ls\n", data, expectedName);
} }
RegCloseKey(hKey); RegCloseKey(hKey);

View file

@ -360,7 +360,7 @@ static void test_QueryDosDeviceA(void)
Result = QueryDosDeviceA(SUBST_DRIVE, Buffer, MAX_PATH); Result = QueryDosDeviceA(SUBST_DRIVE, Buffer, MAX_PATH);
ok(Result, "failed to get target path\n"); ok(Result, "failed to get target path\n");
ok(_strnicmp(Buffer, "\\??\\", 4) == 0, "The target returned does have correct prefix set\n"); ok(_strnicmp(Buffer, "\\??\\", 4) == 0, "The target returned does have correct prefix set\n");
ok(stricmp(&Buffer[4], Target) == 0, "The target returned does not match the one set\n"); ok(_stricmp(&Buffer[4], Target) == 0, "The target returned does not match the one set\n");
Result = DefineDosDeviceA(DDD_REMOVE_DEFINITION | DDD_EXACT_MATCH_ON_REMOVE, SUBST_DRIVE, Target); Result = DefineDosDeviceA(DDD_REMOVE_DEFINITION | DDD_EXACT_MATCH_ON_REMOVE, SUBST_DRIVE, Target);
ok(Result, "Failed to remove subst drive using lowercase drive letter\n"); ok(Result, "Failed to remove subst drive using lowercase drive letter\n");
Result = QueryDosDeviceA(SUBST_DRIVE, Buffer, MAX_PATH); Result = QueryDosDeviceA(SUBST_DRIVE, Buffer, MAX_PATH);

View file

@ -73,7 +73,7 @@ _DoDLLInjection()
do do
{ {
// Check if this is the spooler server process. // Check if this is the spooler server process.
if (wcsicmp(pe.szExeFile, L"spoolsv.exe") != 0) if (_wcsicmp(pe.szExeFile, L"spoolsv.exe") != 0)
continue; continue;
// Open a handle to the process. // Open a handle to the process.

View file

@ -61,7 +61,7 @@ static void TestAdviseAndCanonical(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUI
#define ok_wstri(x, y) \ #define ok_wstri(x, y) \
ok(wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x) ok(_wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2) static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2)
{ {

View file

@ -148,7 +148,7 @@ static WCHAR evVar[MAX_PATH];
ok(hr == expectedHr, ok(hr == expectedHr,
"IShellLink::GetPath(%d), flags 0x%lx, got hr = 0x%lx, expected 0x%lx\n", "IShellLink::GetPath(%d), flags 0x%lx, got hr = 0x%lx, expected 0x%lx\n",
i, flags, hr, expectedHr); i, flags, hr, expectedHr);
ok(wcsicmp(wPathOut, expectedPathOut) == 0, ok(_wcsicmp(wPathOut, expectedPathOut) == 0,
"IShellLink::GetPath(%d), flags 0x%lx, in %S, got %S, expected %S\n", "IShellLink::GetPath(%d), flags 0x%lx, in %S, got %S, expected %S\n",
i, flags, testDef->pathIn, wPathOut, expectedPathOut); i, flags, testDef->pathIn, wPathOut, expectedPathOut);
} }

View file

@ -64,7 +64,7 @@ static void TestAdviseAndCanonical(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUI
#define ok_wstri(x, y) \ #define ok_wstri(x, y) \
ok(wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x) ok(_wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2) static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2)
{ {

View file

@ -66,7 +66,7 @@ static void TestAdviseAndCanonical(PCIDLIST_ABSOLUTE pidlFolder, UINT cidl, PCUI
#define ok_wstri(x, y) \ #define ok_wstri(x, y) \
ok(wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x) ok(_wcsicmp(x, y) == 0, "Wrong string. Expected '%S', got '%S'\n", y, x)
static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2) static void TestHIDA(PVOID pData, SIZE_T Size, LPCWSTR ExpectRoot, LPCWSTR ExpectPath1, LPCWSTR ExpectPath2)
{ {

View file

@ -40,7 +40,7 @@ void FindExpectedFile(FileInfo* Array, size_t len, IShellFolder* pFolder, PCUITE
for (size_t n = 0; n < len; ++n) for (size_t n = 0; n < len; ++n)
{ {
if (!wcsicmp(Array[n].Name, DisplayName) && !Array[n].Found) if (!_wcsicmp(Array[n].Name, DisplayName) && !Array[n].Found)
{ {
Array[n].Found = true; Array[n].Found = true;
ExpectedName = Array[n].Name; ExpectedName = Array[n].Name;
@ -98,7 +98,7 @@ test_EnumDirFiles(const WCHAR *TestFolder, BOOL EnumFolders)
SFGAOF Attributes = SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER; SFGAOF Attributes = SFGAO_FILESYSANCESTOR | SFGAO_FOLDER | SFGAO_FILESYSTEM | SFGAO_HASSUBFOLDER;
hr = spFolder->GetAttributesOf(1, &child, &Attributes); hr = spFolder->GetAttributesOf(1, &child, &Attributes);
if (!wcsicmp(ExpectedName, L"TMP0.zip")) if (!_wcsicmp(ExpectedName, L"TMP0.zip"))
{ {
// We allow both .zip files being a 'file' (2k3) or a 'folder' (win10) // We allow both .zip files being a 'file' (2k3) or a 'folder' (win10)
if (Attributes & SFGAO_FOLDER) if (Attributes & SFGAO_FOLDER)

View file

@ -202,7 +202,7 @@ MMixerGetMixerByName(
MixerInfo = (LPMIXER_INFO)CONTAINING_RECORD(Entry, MIXER_INFO, Entry); MixerInfo = (LPMIXER_INFO)CONTAINING_RECORD(Entry, MIXER_INFO, Entry);
DPRINT1("MixerName %S MixerName %S\n", MixerInfo->MixCaps.szPname, MixerName); DPRINT1("MixerName %S MixerName %S\n", MixerInfo->MixCaps.szPname, MixerName);
if (wcsicmp(MixerInfo->MixCaps.szPname, MixerName) == 0) if (_wcsicmp(MixerInfo->MixCaps.szPname, MixerName) == 0)
{ {
*OutMixerInfo = MixerInfo; *OutMixerInfo = MixerInfo;
return MM_STATUS_SUCCESS; return MM_STATUS_SUCCESS;
@ -764,7 +764,7 @@ MMixerGetDataByDeviceName(
while(Entry != &MixerList->MixerData) while(Entry != &MixerList->MixerData)
{ {
MixerData = (LPMIXER_DATA)CONTAINING_RECORD(Entry, MIXER_DATA, Entry); MixerData = (LPMIXER_DATA)CONTAINING_RECORD(Entry, MIXER_DATA, Entry);
if (wcsicmp(&DeviceName[2], &MixerData->DeviceName[2]) == 0) if (_wcsicmp(&DeviceName[2], &MixerData->DeviceName[2]) == 0)
{ {
/* found entry */ /* found entry */
return MixerData; return MixerData;

View file

@ -119,7 +119,7 @@ KdbCommand_Gdi_dumpht(ULONG argc, char *argv[])
for (i = 0; i <= GDIObjType_MAX_TYPE + 1; i++) for (i = 0; i <= GDIObjType_MAX_TYPE + 1; i++)
{ {
/* Check if this object type was requested */ /* Check if this object type was requested */
if (stricmp(argv[0], gpszObjectTypes[i]) == 0) break; if (_stricmp(argv[0], gpszObjectTypes[i]) == 0) break;
} }
/* Check if we didn't find it yet */ /* Check if we didn't find it yet */
@ -327,28 +327,28 @@ DbgGdiKdbgCliCallback(
IN PCH argv[]) IN PCH argv[])
{ {
if (stricmp(argv[0], "!gdi.help") == 0) if (_stricmp(argv[0], "!gdi.help") == 0)
{ {
KdbCommand_Gdi_help(); KdbCommand_Gdi_help();
} }
else if (stricmp(argv[0], "!gdi.dumpht") == 0) else if (_stricmp(argv[0], "!gdi.dumpht") == 0)
{ {
KdbCommand_Gdi_dumpht(argc - 1, argv + 1); KdbCommand_Gdi_dumpht(argc - 1, argv + 1);
} }
else if (stricmp(argv[0], "!gdi.handle") == 0) else if (_stricmp(argv[0], "!gdi.handle") == 0)
{ {
KdbCommand_Gdi_handle(argv[1]); KdbCommand_Gdi_handle(argv[1]);
} }
else if (stricmp(argv[0], "!gdi.entry") == 0) else if (_stricmp(argv[0], "!gdi.entry") == 0)
{ {
KdbCommand_Gdi_entry(argv[1]); KdbCommand_Gdi_entry(argv[1]);
} }
else if (stricmp(argv[0], "!gdi.baseobject") == 0) else if (_stricmp(argv[0], "!gdi.baseobject") == 0)
{ {
KdbCommand_Gdi_baseobject(argv[1]); KdbCommand_Gdi_baseobject(argv[1]);
} }
#if DBG_ENABLE_EVENT_LOGGING #if DBG_ENABLE_EVENT_LOGGING
else if (stricmp(argv[0], "!gdi.eventlist") == 0) else if (_stricmp(argv[0], "!gdi.eventlist") == 0)
{ {
KdbCommand_Gdi_eventlist(argv[1]); KdbCommand_Gdi_eventlist(argv[1]);
} }

View file

@ -42,14 +42,14 @@ IntTMWFixUp(
* out the problematic TrueType and Vector bits. * out the problematic TrueType and Vector bits.
* Our list below checks for Raster Font Facenames. */ * Our list below checks for Raster Font Facenames. */
DPRINT("Font Facename is '%S'.\n", lf.lfFaceName); DPRINT("Font Facename is '%S'.\n", lf.lfFaceName);
if ((wcsicmp(lf.lfFaceName, L"Courier") == 0) || if ((_wcsicmp(lf.lfFaceName, L"Courier") == 0) ||
(wcsicmp(lf.lfFaceName, L"FixedSys") == 0) || (_wcsicmp(lf.lfFaceName, L"FixedSys") == 0) ||
(wcsicmp(lf.lfFaceName, L"Helv") == 0) || (_wcsicmp(lf.lfFaceName, L"Helv") == 0) ||
(wcsicmp(lf.lfFaceName, L"MS Sans Serif") == 0) || (_wcsicmp(lf.lfFaceName, L"MS Sans Serif") == 0) ||
(wcsicmp(lf.lfFaceName, L"MS Serif") == 0) || (_wcsicmp(lf.lfFaceName, L"MS Serif") == 0) ||
(wcsicmp(lf.lfFaceName, L"System") == 0) || (_wcsicmp(lf.lfFaceName, L"System") == 0) ||
(wcsicmp(lf.lfFaceName, L"Terminal") == 0) || (_wcsicmp(lf.lfFaceName, L"Terminal") == 0) ||
(wcsicmp(lf.lfFaceName, L"Tms Rmn") == 0)) (_wcsicmp(lf.lfFaceName, L"Tms Rmn") == 0))
{ {
ptm->TextMetric.tmPitchAndFamily &= ~(TMPF_TRUETYPE | TMPF_VECTOR); ptm->TextMetric.tmPitchAndFamily &= ~(TMPF_TRUETYPE | TMPF_VECTOR);
} }

View file

@ -399,12 +399,12 @@ GetPrinterDataExA(HANDLE hPrinter, LPCSTR pKeyName, LPCSTR pValueName, LPDWORD p
} }
else if (*pType == REG_NONE) else if (*pType == REG_NONE)
{ {
if (cbUnicodeData == sizeof(OSVERSIONINFOW) && wcsicmp(pwszValueName, SPLREG_OS_VERSION) == 0) if (cbUnicodeData == sizeof(OSVERSIONINFOW) && _wcsicmp(pwszValueName, SPLREG_OS_VERSION) == 0)
{ {
// This is a Unicode OSVERSIONINFOW structure that needs to be converted to an ANSI OSVERSIONINFOA. // This is a Unicode OSVERSIONINFOW structure that needs to be converted to an ANSI OSVERSIONINFOA.
*pcbNeeded = sizeof(OSVERSIONINFOA); *pcbNeeded = sizeof(OSVERSIONINFOA);
} }
else if (cbUnicodeData == sizeof(OSVERSIONINFOEXW) && wcsicmp(pwszValueName, SPLREG_OS_VERSIONEX) == 0) else if (cbUnicodeData == sizeof(OSVERSIONINFOEXW) && _wcsicmp(pwszValueName, SPLREG_OS_VERSIONEX) == 0)
{ {
// This is a Unicode OSVERSIONINFOEXW structure that needs to be converted to an ANSI OSVERSIONINFOEXA. // This is a Unicode OSVERSIONINFOEXW structure that needs to be converted to an ANSI OSVERSIONINFOEXA.
*pcbNeeded = sizeof(OSVERSIONINFOEXA); *pcbNeeded = sizeof(OSVERSIONINFOEXA);

View file

@ -3600,7 +3600,7 @@ StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
} }
GetPrinterW(hPrinter, 5, (LPBYTE)pi5, len, &len); GetPrinterW(hPrinter, 5, (LPBYTE)pi5, len, &len);
if (!pi5->pPortName || wcsicmp(pi5->pPortName, FILE_Port)) if (!pi5->pPortName || _wcsicmp(pi5->pPortName, FILE_Port))
{ {
HeapFree(GetProcessHeap(), 0, pi5); HeapFree(GetProcessHeap(), 0, pi5);
return NULL; return NULL;
@ -3608,7 +3608,7 @@ StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
HeapFree(GetProcessHeap(), 0, pi5); HeapFree(GetProcessHeap(), 0, pi5);
} }
if (doc->lpszOutput == NULL || !wcsicmp(doc->lpszOutput, FILE_Port)) if (doc->lpszOutput == NULL || !_wcsicmp(doc->lpszOutput, FILE_Port))
{ {
LPWSTR name; LPWSTR name;

View file

@ -64,7 +64,7 @@ DoesPortExist(PCWSTR pwszPortName)
for (i = 0; i < dwReturned; i++) for (i = 0; i < dwReturned; i++)
{ {
// Check if this existing port matches our queried one. // Check if this existing port matches our queried one.
if (wcsicmp(p->pName, pwszPortName) == 0) if (_wcsicmp(p->pName, pwszPortName) == 0)
{ {
bReturnValue = TRUE; bReturnValue = TRUE;
goto Cleanup; goto Cleanup;

View file

@ -424,7 +424,7 @@ static DWORD get_type_from_name(LPCWSTR name)
if (!_wcsnicmp(name, portname_COM, ARRAY_SIZE(portname_COM) -1)) if (!_wcsnicmp(name, portname_COM, ARRAY_SIZE(portname_COM) -1))
return PORT_IS_COM; return PORT_IS_COM;
if (!wcsicmp(name, portname_FILE)) if (!_wcsicmp(name, portname_FILE))
return PORT_IS_FILE; return PORT_IS_FILE;
if (name[0] == '/') if (name[0] == '/')

View file

@ -206,7 +206,7 @@ OpenPrintProcessor(PWSTR pPrinterName, PPRINTPROCESSOROPENDATA pPrintProcessorOp
pHandle = DllAllocSplMem(sizeof(WINPRINT_HANDLE)); pHandle = DllAllocSplMem(sizeof(WINPRINT_HANDLE));
// Check what datatype was given. // Check what datatype was given.
if (wcsicmp(pPrintProcessorOpenData->pDatatype, L"RAW") == 0) if (_wcsicmp(pPrintProcessorOpenData->pDatatype, L"RAW") == 0)
{ {
pHandle->Datatype = RAW; pHandle->Datatype = RAW;
} }

View file

@ -205,7 +205,7 @@ InitializeGlobalJobList(void)
if (!IS_VALID_JOB_ID(dwJobID)) if (!IS_VALID_JOB_ID(dwJobID))
continue; continue;
if (wcsicmp(p, L".SHD") != 0) if (_wcsicmp(p, L".SHD") != 0)
continue; continue;
// This shadow file has a valid name. Construct the full path and try to load it. // This shadow file has a valid name. Construct the full path and try to load it.

View file

@ -83,17 +83,17 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
{ {
DWORD dwErrorCode; DWORD dwErrorCode;
if (wcsicmp(pValueName, SPLREG_DEFAULT_SPOOL_DIRECTORY) == 0 || if (_wcsicmp(pValueName, SPLREG_DEFAULT_SPOOL_DIRECTORY) == 0 ||
wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY) == 0 || _wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY) == 0 ||
wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY) == 0 || _wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY) == 0 ||
wcsicmp(pValueName, SPLREG_BEEP_ENABLED) == 0 || _wcsicmp(pValueName, SPLREG_BEEP_ENABLED) == 0 ||
wcsicmp(pValueName, SPLREG_ALLOW_USER_MANAGEFORMS) == 0) _wcsicmp(pValueName, SPLREG_ALLOW_USER_MANAGEFORMS) == 0)
{ {
*pcbNeeded = nSize; *pcbNeeded = nSize;
return (DWORD)RegQueryValueExW(hPrintersKey, pValueName, NULL, pType, pData, pcbNeeded); return (DWORD)RegQueryValueExW(hPrintersKey, pValueName, NULL, pType, pData, pcbNeeded);
} }
else if (wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY_DEFAULT) == 0 || else if (_wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY_DEFAULT) == 0 ||
wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY_DEFAULT) == 0) _wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY_DEFAULT) == 0)
{ {
// Store a DWORD value as REG_NONE. // Store a DWORD value as REG_NONE.
*pType = REG_NONE; *pType = REG_NONE;
@ -105,12 +105,12 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
*((PDWORD)pData) = 0; *((PDWORD)pData) = 0;
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_NET_POPUP) == 0 || else if (_wcsicmp(pValueName, SPLREG_NET_POPUP) == 0 ||
wcsicmp(pValueName, SPLREG_RETRY_POPUP) == 0 || _wcsicmp(pValueName, SPLREG_RETRY_POPUP) == 0 ||
wcsicmp(pValueName, SPLREG_NET_POPUP_TO_COMPUTER) == 0 || _wcsicmp(pValueName, SPLREG_NET_POPUP_TO_COMPUTER) == 0 ||
wcsicmp(pValueName, SPLREG_EVENT_LOG) == 0 || _wcsicmp(pValueName, SPLREG_EVENT_LOG) == 0 ||
wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ERROR) == 0 || _wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ERROR) == 0 ||
wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ENABLED) == 0) _wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ENABLED) == 0)
{ {
HKEY hKey; HKEY hKey;
@ -126,7 +126,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
RegCloseKey(hKey); RegCloseKey(hKey);
return dwErrorCode; return dwErrorCode;
} }
else if (wcsicmp(pValueName, SPLREG_MAJOR_VERSION) == 0) else if (_wcsicmp(pValueName, SPLREG_MAJOR_VERSION) == 0)
{ {
// Store a DWORD value as REG_NONE. // Store a DWORD value as REG_NONE.
*pType = REG_NONE; *pType = REG_NONE;
@ -138,7 +138,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
*((PDWORD)pData) = dwSpoolerMajorVersion; *((PDWORD)pData) = dwSpoolerMajorVersion;
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_MINOR_VERSION) == 0) else if (_wcsicmp(pValueName, SPLREG_MINOR_VERSION) == 0)
{ {
// Store a DWORD value as REG_NONE. // Store a DWORD value as REG_NONE.
*pType = REG_NONE; *pType = REG_NONE;
@ -150,7 +150,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
*((PDWORD)pData) = dwSpoolerMinorVersion; *((PDWORD)pData) = dwSpoolerMinorVersion;
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_ARCHITECTURE) == 0) else if (_wcsicmp(pValueName, SPLREG_ARCHITECTURE) == 0)
{ {
// Store a string as REG_NONE with the length of the environment name string. // Store a string as REG_NONE with the length of the environment name string.
*pType = REG_NONE; *pType = REG_NONE;
@ -162,7 +162,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
CopyMemory(pData, wszCurrentEnvironment, cbCurrentEnvironment); CopyMemory(pData, wszCurrentEnvironment, cbCurrentEnvironment);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_OS_VERSION) == 0) else if (_wcsicmp(pValueName, SPLREG_OS_VERSION) == 0)
{ {
POSVERSIONINFOW pInfo = (POSVERSIONINFOW)pData; POSVERSIONINFOW pInfo = (POSVERSIONINFOW)pData;
@ -177,7 +177,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
GetVersionExW(pInfo); GetVersionExW(pInfo);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_OS_VERSIONEX) == 0) else if (_wcsicmp(pValueName, SPLREG_OS_VERSIONEX) == 0)
{ {
POSVERSIONINFOEXW pInfo = (POSVERSIONINFOEXW)pData; POSVERSIONINFOEXW pInfo = (POSVERSIONINFOEXW)pData;
@ -192,7 +192,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
GetVersionExW((POSVERSIONINFOW)pInfo); GetVersionExW((POSVERSIONINFOW)pInfo);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_DS_PRESENT) == 0) else if (_wcsicmp(pValueName, SPLREG_DS_PRESENT) == 0)
{ {
PDSROLE_PRIMARY_DOMAIN_INFO_BASIC pInfo; PDSROLE_PRIMARY_DOMAIN_INFO_BASIC pInfo;
@ -215,7 +215,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
DsRoleFreeMemory(pInfo); DsRoleFreeMemory(pInfo);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_DS_PRESENT_FOR_USER) == 0) else if (_wcsicmp(pValueName, SPLREG_DS_PRESENT_FOR_USER) == 0)
{ {
DWORD cch; DWORD cch;
PWSTR p; PWSTR p;
@ -258,7 +258,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
*((PDWORD)pData) = (wcscmp(wszUserSam, wszComputerName) != 0); *((PDWORD)pData) = (wcscmp(wszUserSam, wszComputerName) != 0);
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_REMOTE_FAX) == 0) else if (_wcsicmp(pValueName, SPLREG_REMOTE_FAX) == 0)
{ {
// Store a DWORD value as REG_NONE. // Store a DWORD value as REG_NONE.
*pType = REG_NONE; *pType = REG_NONE;
@ -270,7 +270,7 @@ _LocalGetPrintServerHandleData(PCWSTR pValueName, PDWORD pType, PBYTE pData, DWO
*((PDWORD)pData) = 1; *((PDWORD)pData) = 1;
return ERROR_SUCCESS; return ERROR_SUCCESS;
} }
else if (wcsicmp(pValueName, SPLREG_DNS_MACHINE_NAME) == 0) else if (_wcsicmp(pValueName, SPLREG_DNS_MACHINE_NAME) == 0)
{ {
DWORD cchDnsName = 0; DWORD cchDnsName = 0;
@ -405,21 +405,21 @@ _LocalSetPrintServerHandleData(PCWSTR pValueName, DWORD Type, PBYTE pData, DWORD
{ {
DWORD dwErrorCode; DWORD dwErrorCode;
if (wcsicmp(pValueName, SPLREG_DEFAULT_SPOOL_DIRECTORY) == 0 || if (_wcsicmp(pValueName, SPLREG_DEFAULT_SPOOL_DIRECTORY) == 0 ||
wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY) == 0 || _wcsicmp(pValueName, SPLREG_PORT_THREAD_PRIORITY) == 0 ||
wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY) == 0 || _wcsicmp(pValueName, SPLREG_SCHEDULER_THREAD_PRIORITY) == 0 ||
wcsicmp(pValueName, SPLREG_BEEP_ENABLED) == 0 || _wcsicmp(pValueName, SPLREG_BEEP_ENABLED) == 0 ||
wcsicmp(pValueName, SPLREG_ALLOW_USER_MANAGEFORMS) == 0) _wcsicmp(pValueName, SPLREG_ALLOW_USER_MANAGEFORMS) == 0)
{ {
return (DWORD)RegSetValueExW(hPrintersKey, pValueName, 0, Type, pData, cbData); return (DWORD)RegSetValueExW(hPrintersKey, pValueName, 0, Type, pData, cbData);
} }
else if (wcsicmp(pValueName, SPLREG_NET_POPUP) == 0 || else if (_wcsicmp(pValueName, SPLREG_NET_POPUP) == 0 ||
wcsicmp(pValueName, SPLREG_RETRY_POPUP) == 0 || _wcsicmp(pValueName, SPLREG_RETRY_POPUP) == 0 ||
wcsicmp(pValueName, SPLREG_NET_POPUP_TO_COMPUTER) == 0 || _wcsicmp(pValueName, SPLREG_NET_POPUP_TO_COMPUTER) == 0 ||
wcsicmp(pValueName, SPLREG_EVENT_LOG) == 0 || _wcsicmp(pValueName, SPLREG_EVENT_LOG) == 0 ||
wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ERROR) == 0 || _wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ERROR) == 0 ||
wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ENABLED) == 0 || _wcsicmp(pValueName, SPLREG_RESTART_JOB_ON_POOL_ENABLED) == 0 ||
wcsicmp(pValueName, L"NoRemotePrinterDrivers") == 0) _wcsicmp(pValueName, L"NoRemotePrinterDrivers") == 0)
{ {
HKEY hKey; HKEY hKey;
@ -434,7 +434,7 @@ _LocalSetPrintServerHandleData(PCWSTR pValueName, DWORD Type, PBYTE pData, DWORD
RegCloseKey(hKey); RegCloseKey(hKey);
return dwErrorCode; return dwErrorCode;
} }
else if (wcsicmp(pValueName, SPLREG_WEBSHAREMGMT) == 0) else if (_wcsicmp(pValueName, SPLREG_WEBSHAREMGMT) == 0)
{ {
WARN("Attempting to set WebShareMgmt, which is based on IIS and therefore not supported. Returning fake success!\n"); WARN("Attempting to set WebShareMgmt, which is based on IIS and therefore not supported. Returning fake success!\n");
return ERROR_SUCCESS; return ERROR_SUCCESS;

View file

@ -93,7 +93,7 @@ _PrinterListCompareRoutine(PVOID FirstStruct, PVOID SecondStruct)
PLOCAL_PRINTER A = (PLOCAL_PRINTER)FirstStruct; PLOCAL_PRINTER A = (PLOCAL_PRINTER)FirstStruct;
PLOCAL_PRINTER B = (PLOCAL_PRINTER)SecondStruct; PLOCAL_PRINTER B = (PLOCAL_PRINTER)SecondStruct;
return wcsicmp(A->pwszPrinterName, B->pwszPrinterName); return _wcsicmp(A->pwszPrinterName, B->pwszPrinterName);
} }
/** /**
@ -406,7 +406,7 @@ _LocalEnumPrintersCheckName(DWORD Flags, PCWSTR Name, PWSTR pwszComputerName, PD
// Print Provider Name or the local Computer Name. // Print Provider Name or the local Computer Name.
// Compare with the Print Provider Name. // Compare with the Print Provider Name.
if (wcsicmp(Name, wszPrintProviderInfo[0]) == 0) if (_wcsicmp(Name, wszPrintProviderInfo[0]) == 0)
return ERROR_SUCCESS; return ERROR_SUCCESS;
// Dismiss anything else. // Dismiss anything else.

View file

@ -89,7 +89,7 @@ FindDatatype(const PLOCAL_PRINT_PROCESSOR pPrintProcessor, PCWSTR pwszDatatype)
for (i = 0; i < pPrintProcessor->dwDatatypeCount; i++) for (i = 0; i < pPrintProcessor->dwDatatypeCount; i++)
{ {
if (wcsicmp(pCurrentDatatype->pName, pwszDatatype) == 0) if (_wcsicmp(pCurrentDatatype->pName, pwszDatatype) == 0)
return TRUE; return TRUE;
++pCurrentDatatype; ++pCurrentDatatype;
@ -113,7 +113,7 @@ FindPrintProcessor(PCWSTR pwszName)
{ {
pPrintProcessor = CONTAINING_RECORD(pEntry, LOCAL_PRINT_PROCESSOR, Entry); pPrintProcessor = CONTAINING_RECORD(pEntry, LOCAL_PRINT_PROCESSOR, Entry);
if (wcsicmp(pPrintProcessor->pwszName, pwszName) == 0) if (_wcsicmp(pPrintProcessor->pwszName, pwszName) == 0)
return pPrintProcessor; return pPrintProcessor;
} }

View file

@ -2771,7 +2771,7 @@ NtUserMessageCall( HWND hWnd,
} }
ExFreePoolWithTag(List, USERTAG_WINDOWLIST); ExFreePoolWithTag(List, USERTAG_WINDOWLIST);
} }
if (lParam && !wParam && wcsicmp((WCHAR*)lParam, L"Environment") == 0) if (lParam && !wParam && _wcsicmp((WCHAR*)lParam, L"Environment") == 0)
{ {
/* Handle Broadcast of WM_SETTINGCHAGE for Environment */ /* Handle Broadcast of WM_SETTINGCHAGE for Environment */
co_IntDoSendMessage(HWND_BROADCAST, WM_SETTINGCHANGE, co_IntDoSendMessage(HWND_BROADCAST, WM_SETTINGCHANGE,

View file

@ -397,7 +397,7 @@ LoadShellLinkConsoleInfo(IN OUT PCONSOLE_STATE_INFO ConsoleInfo,
/* 2- Check for the link extension. The name ".lnk" is considered invalid. */ /* 2- Check for the link extension. The name ".lnk" is considered invalid. */
Length = wcslen(LinkName); Length = wcslen(LinkName);
if ( (Length <= 4) || (wcsicmp(LinkName + (Length - 4), L".lnk") != 0) ) if ( (Length <= 4) || (_wcsicmp(LinkName + (Length - 4), L".lnk") != 0) )
return FALSE; return FALSE;
/* 3- It may be a link. Try to retrieve some properties */ /* 3- It may be a link. Try to retrieve some properties */