fix: File opening in existing instance not being unicode aware
This commit is contained in:
parent
b917bfca07
commit
dea6caccf1
@ -161,10 +161,11 @@ namespace hex {
|
|||||||
auto message = reinterpret_cast<COPYDATASTRUCT *>(lParam);
|
auto message = reinterpret_cast<COPYDATASTRUCT *>(lParam);
|
||||||
if (message == nullptr) break;
|
if (message == nullptr) break;
|
||||||
|
|
||||||
auto path = reinterpret_cast<const char *>(message->lpData);
|
auto data = reinterpret_cast<const char8_t *>(message->lpData);
|
||||||
if (path == nullptr) break;
|
if (data == nullptr) break;
|
||||||
|
|
||||||
log::info("Opening file in existing instance: {}", path);
|
std::fs::path path = data;
|
||||||
|
log::info("Opening file in existing instance: {}", path.string());
|
||||||
EventManager::post<RequestOpenFile>(path);
|
EventManager::post<RequestOpenFile>(path);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user