microsoft / wil

Windows Implementation Library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

warning C6001

kouzhudong opened this issue · comments

packages\Microsoft.Windows.ImplementationLibrary.1.0.230629.1\include\wil\resource.h(5599): warning C6001: 使用未初始化的内存“*hClientHandle”。

Analyzer is complaining here:

        inline void __stdcall CloseWlanHandle(_Frees_ptr_ HANDLE hClientHandle)
        {
            ::WlanCloseHandle(hClientHandle, nullptr);  // <======== HERE
        }

Not so sure that _Frees_ptr_ is the correct annotation