[FIND] Improve imports and fix x64 build warnings

find\find.c(64),(65):
  warning C4267: '=': conversion from 'size_t' to 'INT', possible loss of data
This commit is contained in:
Hermès Bélusca-Maïto
2026-03-26 21:33:58 +01:00
parent f19cb6af8b
commit 85841c2ba2
2 changed files with 5 additions and 7 deletions

View File

@@ -1,8 +1,6 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
add_executable(find find.c find.rc)
set_module_type(find win32cui UNICODE)
target_link_libraries(find conutils ${PSEH_LIB})
target_link_libraries(find conutils)
add_importlibs(find msvcrt kernel32)
add_cd_file(TARGET find DESTINATION reactos/system32 FOR all)

View File

@@ -13,7 +13,6 @@
#include <windef.h>
#include <winbase.h>
#include <winnls.h>
#include <winuser.h>
#include <conutils.h>
#include <strsafe.h>
@@ -57,12 +56,13 @@ StrStrCase(
if (bIgnoreCase)
{
LCID LocaleId;
INT i, cch1, cch2;
UINT cch1, cch2;
INT i;
LocaleId = GetThreadLocale();
cch1 = wcslen(pszStr);
cch2 = wcslen(pszSearch);
cch1 = (UINT)wcslen(pszStr);
cch2 = (UINT)wcslen(pszSearch);
if (cch2 == 0)
return (PWSTR)pszStr;