mirror of https://github.com/WerWolv/ImHex.git
events: Fix passing path through argv (#187)
This commit is contained in:
parent
2eb83b0035
commit
293fc17aa6
|
@ -53,7 +53,7 @@ int main(int argc, char **argv) {
|
|||
ContentRegistry::Views::add<ViewYara>();
|
||||
|
||||
if (argc > 1)
|
||||
View::postEvent(Events::FileDropped, argv[1]);
|
||||
View::postEvent(Events::FileDropped, const_cast<const char*>(argv[1]));
|
||||
|
||||
window.loop();
|
||||
|
||||
|
|
Loading…
Reference in New Issue