#1319 shlobj.h bugs

WSL
closed
None
fixed
Known_bugs
2013-01-30
2009-07-21
Jacek Caban
No

shlobj.h lacks definition of SHARD_PATHW, see:
http://msdn.microsoft.com/en-us/library/dd378453%28VS.85%29.aspx
Also note that SHARD_PATH should be defined to SHARD_PATHA or SHARD_PATHW depending on UNICODE being defined or not.

Another bug is that SHGetSpecialFolderPath[AW] declarations are protected by
#if (_WIN32_IE >= 0x0400)
but they shouldn't.

I'm attaching a test that validates both issues. It compiles fine on MSVC with command:
$ cl test.c shell32.lib
but fails on MinGW.

Discussion

  • Jacek Caban

    Jacek Caban - 2009-07-21

    Test

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2009-11-20
    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-accepted
     
  • Chris Sutcliffe

    Chris Sutcliffe - 2009-11-20

    I've added the SHARD enum to shlobj.h and updated the SHARD_PATH definition to be based on UNICODE. I did not remove the guard around SHGetSpecialFolderPath due to MSDN stating:

    Windows 2000, Windows NT 4.0 with Internet Explorer 4.0, Windows 98, Windows 95 with Internet Explorer 4.0

     
  • Earnie Boyd

    Earnie Boyd - 2013-01-30
    • labels: w32api (deprecated use WSL) -->
    • status: closed-accepted --> closed
    • resolution: --> fixed
    • category: --> Known_bugs
    • milestone: --> WSL
     

Log in to post a comment.

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

Sign up for the SourceForge newsletter:





No, thanks