]> git.tdb.fi Git - libs/core.git/blobdiff - source/fs/windows/dir.cpp
Add move semantics to Variant
[libs/core.git] / source / fs / windows / dir.cpp
index c6f6b9b6bd29893535ca64dd5b4423b5a39a8ad0..2ba2f1e110f8e8f3aaf7dcbec38d50f052160578 100644 (file)
@@ -1,4 +1,4 @@
-#include <windows.h>
+#include <msp/core/winapi.h>
 #include <msp/core/mutex.h>
 #include <msp/core/systemerror.h>
 #include <msp/strings/regex.h>
@@ -28,7 +28,7 @@ vector<string> list_filtered(const Path &path, const string &filter)
        vector<string> result;
        WIN32_FIND_DATA entry;
        string pattern = path.str()+"\\*";
-       HANDLE search_handle = FindFirstFileEx(pattern.c_str(), FindExInfoBasic, &entry, FindExSearchNameMatch, 0, 0);
+       HANDLE search_handle = FindFirstFileEx(pattern.c_str(), FindExInfoBasic, &entry, FindExSearchNameMatch, nullptr, 0);
        if(search_handle==INVALID_HANDLE_VALUE)
        {
                DWORD err = GetLastError();