From 2b20c4cc7ecad807ad20bc2c3b5f4a4f28c30807 Mon Sep 17 00:00:00 2001 From: Winston Liu Date: Tue, 7 Jan 2025 09:39:08 -0800 Subject: [PATCH] C26135: Update comments to use correct annotation --- docs/code-quality/c26135.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/code-quality/c26135.md b/docs/code-quality/c26135.md index bbd4c04054a..96db147d013 100644 --- a/docs/code-quality/c26135.md +++ b/docs/code-quality/c26135.md @@ -25,14 +25,14 @@ typedef struct _DATA void MyEnter(DATA* p) { // Warning C26135: - // Missing side effect annotation _Acquires_lock_(&p->cs) + // Missing side effect annotation _Acquires_lock_(p->cs) EnterCriticalSection(&p->cs); } void MyLeave(DATA* p) { // warning C26135: - // Missing side effect annotation _Releases_lock_(&p->cs) + // Missing side effect annotation _Releases_lock_(p->cs) LeaveCriticalSection(&p->cs); } ```