mirror of
https://github.com/reactos/reactos.git
synced 2026-06-01 17:00:51 +08:00
[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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -84,4 +84,3 @@ BOOL hash_file(LPCWSTR Filename)
|
||||
CloseHandle(hFile);
|
||||
return bSuccess;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user