Menu

CResource::LoadEx bug

thims
2014-08-28
2014-10-02
  • thims

    thims - 2014-08-28

    It passes parameters to FindResourceEx() in wrong order.

    To fix it without breaking the existing apps, please rename params in function prototype (line 1155 in atluser.h) like this:

    bool LoadEx(ATL::_U_STRINGorID ID, ATL::_U_STRINGorID Type, WORD wLanguage)

    and change line 1160 like this:

    m_hResource = ::FindResourceEx(ModuleHelper::GetResourceInstance(), Type.m_lpstr, ID.m_lpstr, wLanguage);

     

    Last edit: thims 2014-08-28
  • Nenad Stefanovic

    Thanks for reporting this. I will consider your solution.

    Cheers,
    Nenad

     
  • Nenad Stefanovic

    What a mess... I hate doing this, but it is the only reasonable way to fix the problem.

    Fixed as proposed - atluser.h, 596

     

Log in to post a comment.