Fixes
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
#define _SIADOKANDRIVE_H
|
||||
|
||||
#ifdef _WIN32
|
||||
#define WIN32_NO_STATUS
|
||||
|
||||
// Import or export functions and/or classes
|
||||
#ifdef SIADRIVE_DOKAN_EXPORT_SYMBOLS
|
||||
#define SIADRIVE_DOKAN_EXPORTABLE __declspec(dllexport)
|
||||
@@ -194,10 +196,11 @@ class SIADRIVE_DOKAN_EXPORTABLE DokanFindFiles :
|
||||
public CEvent
|
||||
{
|
||||
public:
|
||||
DokanFindFiles(const SString& cachePath, const SString& rootPath, const SString& siaQuery) :
|
||||
DokanFindFiles(const SString& cachePath, const SString& rootPath, const SString& siaQuery, const SString& findFile) :
|
||||
_cachePath(cachePath),
|
||||
_rootPath(rootPath),
|
||||
_siaQuery(siaQuery)
|
||||
_siaQuery(siaQuery),
|
||||
_findFile(findFile)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -210,18 +213,20 @@ private:
|
||||
const SString _cachePath;
|
||||
const SString _rootPath;
|
||||
const SString _siaQuery;
|
||||
const SString _findFile;
|
||||
|
||||
public:
|
||||
virtual std::shared_ptr<CEvent> Clone() const override
|
||||
{
|
||||
return std::shared_ptr<CEvent>(new DokanFindFiles(_cachePath, _rootPath, _siaQuery));
|
||||
return std::shared_ptr<CEvent>(new DokanFindFiles(_cachePath, _rootPath, _siaQuery, _findFile));
|
||||
}
|
||||
|
||||
virtual SString GetSingleLineMessage() const override
|
||||
{
|
||||
return L"DokanFindFiles|PATH|" + _cachePath +
|
||||
"|ROOT|" + _rootPath +
|
||||
"|QUERY|" + _siaQuery;
|
||||
"|QUERY|" + _siaQuery +
|
||||
"|FIND|" + _findFile;
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user