[UI] Remove MAX_PATH limit from WM_DROPFILES

Also required const-ifying a file drop message.
This commit is contained in:
Silent
2019-08-31 14:29:32 +02:00
committed by Justin Moore
parent 96a9397349
commit d3a73022fd
4 changed files with 18 additions and 16 deletions

View File

@@ -28,14 +28,14 @@ class UIEvent {
class FileDropEvent : public UIEvent {
public:
FileDropEvent(Window* target, wchar_t* filename)
FileDropEvent(Window* target, const wchar_t* filename)
: UIEvent(target), filename_(filename) {}
~FileDropEvent() override = default;
wchar_t* filename() const { return filename_; }
const wchar_t* filename() const { return filename_; }
private:
wchar_t* filename_ = nullptr;
const wchar_t* filename_ = nullptr;
};
class KeyEvent : public UIEvent {