PRB: NdisMWriteLogData Returns Incorrect Status ValueID: Q194638
|
NdisMWriteLogData returns an uninitialized NDIS_STATUS for a successful write condition. As a result, you get a garbage value off of the stack.
NDIS does not properly set the return status to NDIS_STATUS_SUCCESS for a successful write condition.
To work around this, have your code check for following:
status = NdisMWriteLogData( LogHandle, LogBuffer, LogBufferSize);
if ( NDIS_STATUS_BUFFER_OVERFLOW == status) {
//
// You have an error condition.
//
} else {
//
// Continue...
//
}
Q194637 DOC: Error Incorrect NdisMWriteLogData Return Value
Additional query words: NdisMWriteLogData
Keywords : kbDDK kbNDIS kbNTOS400
Version :
Platform :
Issue type : kbprb
Last Reviewed: March 6, 1999