xxandy / USB_UDE_Sample

UDE (USB Device Emulation) Hardware-less sample, with matching Host-Side drivers. Used as a USB study test bed.
52 stars 16 forks source link

Update WRQueuePullRead SAL annotation to fix Code Analysis warning #42

Closed forderud closed 6 months ago

forderud commented 6 months ago

Fixes #41.

Update SAL annotation to express that the rbuffer argument:

Fixes the following Visual Studio Code Analysis warning: UDEFX2\Misc.c(177): warning C6101: Returning uninitialized memory '*rbuffer'. A successful path through the function does not set the named _Out_ parameter.

Documentation: Annotating function parameters and return values