shlobj.h lacks definition of SHARD_PATHW, see:
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.
Log in to post a comment.