FIX: MSMQ: GetStreamedObject and GetStoredObject Return Error with VT_UNKNOWN

This article was previously published under Q241755
This article has been archived. It is offered "as is" and will no longer be updated.
SYMPTOMS
Sending components that result in calls to either GetStreamedObject or GetStoredObject receive errors with incorrect HRESULT values.
CAUSE
MSMQ passes VT_UNKNOWN in the variant's type tag after a call to query interface. This is valid. The HRESULT should have been reset prior to returning, but it was not. This resulted in errors due to the HRESULT being set incorrectly.
RESOLUTION

Windows NT Server 4.0, Terminal Server Edition

To resolve this problem, obtain the latest service pack for Windows NT Server 4.0, Terminal Server Edition. For additional information, click the following article number to view the article in theMicrosoft Knowledge Base:
152734 How to Obtain the Latest Windows NT 4.0 Service Pack

Passing VT_UNKNOWN is by design and the code was corrected to reset the HRESULT to NOERROR.
STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.

This problem was first corrected in Windows NT Server version 4.0, Terminal Server Edition Service Pack 6.
msmq hresult variant
Properties

Article ID: 241755 - Last Review: 02/28/2014 00:28:31 - Revision: 5.0

  • Microsoft Windows NT Server 4.0, Terminal Server Edition
  • Microsoft Message Queue Server 1.0
  • kbnosurvey kbarchive kbbug kbfix kbmsmq100fix KB241755
Feedback