Skip to content

Commit e9ce68b

Browse files
adityamandaleekacaptainsafia
authored andcommitted
Fix SAL related CA warnings.
1 parent 6f3066c commit e9ce68b

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

src/Servers/IIS/AspNetCoreModuleV2/DefaultRules.ruleset

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@
248248
<Rule Id="C28290" Action="Error" />
249249
<Rule Id="C28291" Action="Error" />
250250
<Rule Id="C28300" Action="Error" />
251-
<Rule Id="C28301" Action="None" /> <!-- No annotations for first declaration -->
251+
<Rule Id="C28301" Action="Error" />
252252
<Rule Id="C28302" Action="Error" />
253253
<Rule Id="C28303" Action="Error" />
254254
<Rule Id="C28304" Action="Error" />
@@ -427,7 +427,6 @@
427427
<Rule Id="C6540" Action="Error" />
428428
<Rule Id="C6551" Action="Error" />
429429
<Rule Id="C6552" Action="Error" />
430-
<Rule Id="C6553" Action="None" /> <!-- Annotation does not apply to a value type -->
431430
<Rule Id="C6701" Action="Error" />
432431
<Rule Id="C6702" Action="Error" />
433432
<Rule Id="C6703" Action="Error" />

src/Servers/IIS/AspNetCoreModuleV2/OutOfProcessRequestHandler/winhttphelper.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ typedef
77
HINTERNET
88
(WINAPI * PFN_WINHTTP_WEBSOCKET_COMPLETE_UPGRADE)(
99
_In_ HINTERNET hRequest,
10-
_In_opt_ DWORD_PTR pContext
10+
DWORD_PTR pContext
1111
);
1212

1313

src/Servers/IIS/AspNetCoreModuleV2/RequestHandlerLib/filewatcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class FILE_WATCHER{
5050

5151
static DWORD WINAPI CopyAndShutdown(FILE_WATCHER* watcher);
5252

53-
HRESULT HandleChangeCompletion(DWORD cbCompletion);
53+
HRESULT HandleChangeCompletion(_In_ DWORD bytesTransferred);
5454

5555
HRESULT Monitor();
5656
void StopMonitor();

0 commit comments

Comments
 (0)