mirror of
https://github.com/reactos/reactos.git
synced 2026-05-31 16:31:07 +08:00
[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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user