CAtlServiceModuleT::LogEventEx() contains a useless check - by Dmitry Me

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 714840 Comments
Status Closed Workarounds
Type Bug Repros 0
Opened 12/20/2011 5:46:44 AM
Access Restriction Public


This behavior is observed in version 10.0.40219.1 SP1Rel

atlbase.h contains this code for CAtlServiceModuleT::LogEventEx():

HANDLE hEventSource;
if (m_szServiceName)

Now m_szServiceName is defined like this:

TCHAR m_szServiceName[256];

and therefore the check yields "true" at all times and is completely useless.
Sign in to post a comment.
Posted by Microsoft on 1/23/2012 at 10:46 AM
Hello Dmitry,

The reported problem has been fixed in next release of Visual Studio. Thank you very much for your feedback.

Lukasz Chodorski
Windows C++ Libraries Team
Posted by MS-Moderator10 [Feedback Moderator] on 12/20/2011 at 10:27 PM
Thank you for submitting feedback on Visual Studio 2010 and .NET Framework. Your issue has been routed to the appropriate VS development team for investigation. We will contact you if we require any additional information.
Posted by MS-Moderator01 on 12/20/2011 at 6:44 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(