[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

@@ -291,9 +291,8 @@ bool EmulatorWindow::Initialize() {
return true;
}
void EmulatorWindow::FileDrop(wchar_t* filename) {
std::wstring path = filename;
auto result = emulator_->LaunchPath(path);
void EmulatorWindow::FileDrop(const wchar_t* filename) {
auto result = emulator_->LaunchPath(filename);
if (XFAILED(result)) {
// TODO: Display a message box.
XELOGE("Failed to launch target: %.8X", result);

View File

@@ -43,7 +43,7 @@ class EmulatorWindow {
bool Initialize();
void FileDrop(wchar_t* filename);
void FileDrop(const wchar_t* filename);
void FileOpen();
void FileClose();
void ShowContentDirectory();