#1836 CM_Get_Device_ID_Ex points to unicode version in cfgmgr32.h

WSL
closed
None
Task
out-of-date
Feature_in_WSL_4.0
True
2013-02-25
2011-11-20
No

CM_Get_Device_ID_Ex is pointing to the unicode version, CM_Get_Device_ID_ExW when UNICODE is not defined.
It should point to CM_Get_Device_ID_ExA instead.

See ddk/cfgmgr32.h:

#ifdef UNICODE
#define CM_Get_Device_ID CM_Get_Device_IDW
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
#else
#define CM_Get_Device_ID CM_Get_Device_IDA
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
#endif /* UNICODE */

should be:

#ifdef UNICODE
#define CM_Get_Device_ID CM_Get_Device_IDW
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExW
#else
#define CM_Get_Device_ID CM_Get_Device_IDA
#define CM_Get_Device_ID_Ex CM_Get_Device_ID_ExA
#endif /* UNICODE */

Discussion

  • Earnie Boyd

    Earnie Boyd - 2011-11-20
    • assigned_to: nobody --> ir0nh34d
    • labels: 103945 --> w32api
     
  • Earnie Boyd

    Earnie Boyd - 2011-11-20

    Patch attached.

     
  • Earnie Boyd

    Earnie Boyd - 2012-08-06
    • assigned_to: ir0nh34d --> earnie
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-14

    Ticket moved from /p/mingw/patches/503/

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-14
    • labels: w32api -->
    • status: open --> pending
    • milestone: --> WSL
    • type: --> Task
    • resolution: --> later
    • category: --> Unknown
    • patch_attached: --> True
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-21
    • labels: --> release notes
    • status: pending --> closed
    • resolution: later --> out-of-date
    • category: Unknown --> Feature_in_WSL_4.0
     
  • Earnie Boyd

    Earnie Boyd - 2013-02-21

    A different method is being used for defining these UNICODE/ANSI macros in mingw.org-wsl for the 4.0 release which has resulted in fixing this issue.

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-25

    Notes previously added to NEWS file.

     
  • Earnie Boyd

    Earnie Boyd - 2013-02-25
    • labels: release notes -->
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks