Skip to content
Permalink
Browse files

Fix SAL annotation warnings

  • Loading branch information
dmex committed Apr 19, 2019
1 parent c4b62e9 commit e09d4a8c527c161725bc7cef7980846c81939d31
Showing with 11 additions and 8 deletions.
  1. +1 −1 ProcessHacker/hndlprp.c
  2. +6 −3 phlib/basesup.c
  3. +1 −1 phlib/include/seceditp.h
  4. +1 −1 phlib/native.c
  5. +1 −1 phlib/secedit.c
  6. +1 −1 tools/peview/resprp.c
@@ -511,7 +511,7 @@ VOID PhpUpdateHandleGeneral(
PPH_ACCESS_ENTRY accessEntries;
ULONG numberOfAccessEntries;
OBJECT_BASIC_INFORMATION basicInfo;
WCHAR string[PH_PTR_STR_LEN];
WCHAR string[PH_INT64_STR_LEN_1];

PhSetListViewSubItem(Context->ListViewHandle, Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_NAME], 1, PhGetStringOrEmpty(Context->HandleItem->BestObjectName));
PhSetListViewSubItem(Context->ListViewHandle, Context->ListViewRowCache[PH_HANDLE_GENERAL_INDEX_TYPE], 1, PhGetStringOrEmpty(Context->HandleItem->TypeName));
@@ -5905,9 +5905,10 @@ VOID PhPrintTimeSpan(
switch (Mode)
{
case PH_TIMESPAN_HMSM:
_snwprintf(
_snwprintf_s(
Destination,
PH_TIMESPAN_STR_LEN,
_TRUNCATE,
L"%02I64u:%02I64u:%02I64u.%03I64u",
PH_TICKS_PARTIAL_HOURS(Ticks),
PH_TICKS_PARTIAL_MIN(Ticks),
@@ -5916,9 +5917,10 @@ VOID PhPrintTimeSpan(
);
break;
case PH_TIMESPAN_DHMS:
_snwprintf(
_snwprintf_s(
Destination,
PH_TIMESPAN_STR_LEN,
_TRUNCATE,
L"%I64u:%02I64u:%02I64u:%02I64u",
PH_TICKS_PARTIAL_DAYS(Ticks),
PH_TICKS_PARTIAL_HOURS(Ticks),
@@ -5927,9 +5929,10 @@ VOID PhPrintTimeSpan(
);
break;
default:
_snwprintf(
_snwprintf_s(
Destination,
PH_TIMESPAN_STR_LEN,
_TRUNCATE,
L"%02I64u:%02I64u:%02I64u",
PH_TICKS_PARTIAL_HOURS(Ticks),
PH_TICKS_PARTIAL_MIN(Ticks),
@@ -225,7 +225,7 @@ HRESULT STDMETHODCALLTYPE PhSecurityDataObject_GetData(
_Out_ STGMEDIUM *pmedium);

HRESULT STDMETHODCALLTYPE PhSecurityDataObject_GetDataHere(
IDataObject *This,
_In_ IDataObject *This,
_In_ FORMATETC *pformatetc,
_Inout_ STGMEDIUM *pmedium
);
@@ -6123,7 +6123,7 @@ PPH_STRING PhGetFileName(
// If the file name starts with "\Windows", prepend the system drive.
if (PhStartsWithString2(newFileName, L"\\Windows", TRUE))
{
newFileName = PhCreateStringEx(NULL, FileName->Length + sizeof(UNICODE_NULL) * sizeof(WCHAR));
newFileName = PhCreateStringEx(NULL, (FileName->Length + 2) * sizeof(WCHAR));
newFileName->Buffer[0] = USER_SHARED_DATA->NtSystemRoot[0];
newFileName->Buffer[1] = ':';
memcpy(&newFileName->Buffer[2], FileName->Buffer, FileName->Length);
@@ -172,7 +172,7 @@ VOID PhEditSecurity(
}

ISecurityInformation *PhSecurityInformation_Create(
_In_ HWND WindowHandle,
_In_opt_ HWND WindowHandle,
_In_ PWSTR ObjectName,
_In_ PWSTR ObjectType,
_In_ PPH_OPEN_OBJECT OpenObject,
@@ -121,7 +121,7 @@ INT_PTR CALLBACK PvpPeResourcesDlgProc(

entry = resources.ResourceEntries[i];

PhPrintUInt64(number, ++count);
PhPrintUInt32(number, ++count);
lvItemIndex = PhAddListViewItem(lvHandle, MAXINT, number, NULL);

if (IS_INTRESOURCE(entry.Type))

0 comments on commit e09d4a8

Please sign in to comment.
You can’t perform that action at this time.