summaryrefslogtreecommitdiff
path: root/src/utils/specialfolder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/utils/specialfolder.cpp')
-rw-r--r--src/utils/specialfolder.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/specialfolder.cpp b/src/utils/specialfolder.cpp
index 64607716..63337578 100644
--- a/src/utils/specialfolder.cpp
+++ b/src/utils/specialfolder.cpp
@@ -22,8 +22,8 @@
#include "specialfolder.h"
#include <windows.h>
-#ifdef _SPECIALFOLDERLOCATION_TEST_
-// compile with -D_SPECIALFOLDERLOCATION_TEST_ to get a standalone
+#ifdef SPECIALFOLDERLOCATION_TEST
+// compile with -DSPECIALFOLDERLOCATION_TEST to get a standalone
// binary for testing
#include <iostream>
#endif
@@ -39,7 +39,7 @@ std::string getSpecialFolderLocation(int folderId)
std::string ret;
LPITEMIDLIST pItemIdList;
LPMALLOC pMalloc;
- char szPath[_MAX_PATH];
+ char szPath[MAX_PATH];
// get the item ID list for folderId
HRESULT hr = SHGetSpecialFolderLocation(NULL, folderId, &pItemIdList);
@@ -59,7 +59,7 @@ std::string getSpecialFolderLocation(int folderId)
return ret;
}
-#ifdef _SPECIALFOLDERLOCATION_TEST_
+#ifdef SPECIALFOLDERLOCATION_TEST
int main()
{
std::cout << "APPDATA " << getSpecialFolderLocation(CSIDL_APPDATA)