Getting error at this macro "RtlZeromemory macro" RRS feed


  • TransferContext->CommonBuffer is a WDFCOMMONBUFFER.  That's a handle -- it's only 8 bytes.  You are trying to clear many more than 8 bytes, which of course causes a crash.

    The actual virtual address of the buffer is in Buffer, which you fetched immediately above.

    Tim Roberts | Driver MVP Emeritus | Providenza & Boekelheide, Inc.

    Tuesday, March 17, 2020 7:17 PM