diff --git a/desmume/src/windows/luaconsole.cpp b/desmume/src/windows/luaconsole.cpp index fc16adeec..08945d5dc 100644 --- a/desmume/src/windows/luaconsole.cpp +++ b/desmume/src/windows/luaconsole.cpp @@ -598,7 +598,7 @@ LRESULT CALLBACK LuaScriptProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lPara { // tell the OS to open the file with its associated editor, // without blocking on it or leaving a command window open. - ShellExecute(NULL, "open", PhysicalName, NULL, NULL, SW_SHOWNORMAL); + ShellExecute(NULL, "edit", PhysicalName, NULL, NULL, SW_SHOWNORMAL); } if(created) {