Skip to content

Commit 58a1ae7

Browse files
committed
Fix SAL warnings
1 parent 18c20b8 commit 58a1ae7

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

phlib/guisup.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1393,7 +1393,7 @@ VOID PhEnumChildWindows(
13931393
_In_opt_ HWND WindowHandle,
13941394
_In_ ULONG Limit,
13951395
_In_ PH_CHILD_ENUM_CALLBACK Callback,
1396-
_In_ PVOID Context
1396+
_In_opt_ PVOID Context
13971397
)
13981398
{
13991399
HWND childWindow = NULL;
@@ -1592,7 +1592,7 @@ static ULONG NTAPI PhpWindowCallbackHashtableHashFunction(
15921592
VOID PhRegisterWindowCallback(
15931593
_In_ HWND WindowHandle,
15941594
_In_ PH_PLUGIN_WINDOW_EVENT_TYPE Type,
1595-
_In_ PVOID Context
1595+
_In_opt_ PVOID Context
15961596
)
15971597
{
15981598
PPH_PLUGIN_WINDOW_CALLBACK_REGISTRATION entry;

phlib/include/guisup.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -500,7 +500,7 @@ VOID PhEnumChildWindows(
500500
_In_opt_ HWND WindowHandle,
501501
_In_ ULONG Limit,
502502
_In_ PH_CHILD_ENUM_CALLBACK Callback,
503-
_In_ PVOID Context
503+
_In_opt_ PVOID Context
504504
);
505505

506506
HWND PhGetProcessMainWindow(
@@ -866,7 +866,7 @@ NTAPI
866866
PhRegisterWindowCallback(
867867
_In_ HWND WindowHandle,
868868
_In_ PH_PLUGIN_WINDOW_EVENT_TYPE Type,
869-
_In_ PVOID Context
869+
_In_opt_ PVOID Context
870870
);
871871

872872
PHLIBAPI

phlib/include/secedit.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ PHLIBAPI
3333
VOID
3434
NTAPI
3535
PhEditSecurity(
36-
_In_ HWND WindowHandle,
36+
_In_opt_ HWND WindowHandle,
3737
_In_ PWSTR ObjectName,
3838
_In_ PWSTR ObjectType,
3939
_In_ PPH_OPEN_OBJECT OpenCallback,
@@ -183,4 +183,4 @@ PhGetAccessString(
183183
}
184184
#endif
185185

186-
#endif
186+
#endif

phlib/include/wslsup.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ ULONG PhCreateProcessLxss(
3636
_In_ PWSTR LxssDistribution,
3737
_In_ PWSTR LxssCommandLine,
3838
_In_opt_ PWSTR LxssCurrentDirectory,
39-
_Out_ PPH_STRING *Result,
40-
_Out_opt_ PHANDLE ProcessHandle
39+
_Out_ PPH_STRING *Result
4140
);
4241

4342
#ifdef __cplusplus

phlib/secedit.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ static NTSTATUS PhpEditSecurityInformationThread(
140140
* \param Context A user-defined value to pass to the callback functions.
141141
*/
142142
VOID PhEditSecurity(
143-
_In_ HWND WindowHandle,
143+
_In_opt_ HWND WindowHandle,
144144
_In_ PWSTR ObjectName,
145145
_In_ PWSTR ObjectType,
146146
_In_ PPH_OPEN_OBJECT OpenObject,

0 commit comments

Comments
 (0)