[CERTUTIL] Improve imports and fix x64 build warning

certutil\asn.cpp(224):
  warning C4267: 'initializing': conversion from 'size_t' to 'DWORD', possible loss of data
This commit is contained in:
Hermès Bélusca-Maïto
2026-03-27 13:45:24 +01:00
parent 6affaf1975
commit f00588552f
4 changed files with 3 additions and 12 deletions

View File

@@ -1,6 +1,4 @@
include_directories(${REACTOS_SOURCE_DIR}/sdk/lib/conutils)
list(APPEND SOURCE
asn.cpp
certutil.cpp
@@ -9,7 +7,7 @@ list(APPEND SOURCE
add_executable(certutil ${SOURCE})
set_module_type(certutil win32cui UNICODE)
target_link_libraries(certutil conutils ${PSEH_LIB})
target_link_libraries(certutil conutils)
add_importlibs(certutil crypt32 advapi32 msvcrt kernel32)
add_pch(certutil precomp.h SOURCE)
add_cd_file(TARGET certutil DESTINATION reactos/system32 FOR all)

View File

@@ -221,7 +221,7 @@ void PrintTag(PBYTE pRoot, PBYTE pHeader, DWORD dwTag, DWORD dwTagLength, PBYTE
DWORD dwRemainder = HexDump(pRoot, pHeader, pData - pHeader, wszPrefix);
LPCWSTR wszTag = TagToName(dwTag);
DWORD dwPadding = dwRemainder + wcslen(wszPrefix);
size_t dwPadding = dwRemainder + wcslen(wszPrefix);
while (dwPadding > 50)
dwPadding -= 50;
ConPrintf(StdOut, L"%*s; %s (%x Bytes)\n", 50 - dwPadding, L"", wszTag, dwTagLength);
@@ -505,4 +505,3 @@ BOOL asn_dump(LPCWSTR Filename)
LocalFree(pData);
return fSucceeded;
}

View File

@@ -84,4 +84,3 @@ BOOL hash_file(LPCWSTR Filename)
CloseHandle(hFile);
return bSuccess;
}

View File

@@ -1,5 +1,4 @@
#ifndef __CERTUTIL_PRECOMP_H
#define __CERTUTIL_PRECOMP_H
#pragma once
/* INCLUDES ******************************************************************/
@@ -14,7 +13,3 @@
BOOL hash_file(LPCWSTR Filename);
BOOL asn_dump(LPCWSTR Filename);
#endif /* __CERTUTIL_PRECOMP_H */