I am looking at the code example in
http://msdn.microsoft.com/en-us/library/aa490687.aspx
http://msdn.microsoft.com/en-us/library/aa490687.aspx
The deviceInit is allocated by WdfControlDeviceInitAllocate(), and if an
error occurs before WdfDeviceCreate() returns success, WdfDeviceInitFree() is
called.
My question is should it be called after WdfDeviceCreate() returns success,
or does a successful call to WdfDeviceCreate() return the allocated memory?
—
Mr. Fixit needs your help! – John Bond , LLC