Skip to content

Commit a55dba8

Browse files
committed
FLTK: fix live edit in windows
1 parent 614b70a commit a55dba8

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

src/languages/messages.en.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
#define ERR_MISSING_LP "Missing '('"
174174
#define ERR_PARFMT "Parameters count/format error (%s)"
175175
#define ERR_BYREF "Parameter %d cannot BYREF"
176-
#define ERR_BAD_FILE_HANDLE "VFS: Bad file number (Use OPEN)"
176+
#define ERR_BAD_FILE_HANDLE "Invalid file number (Use OPEN)"
177177
#define ERR_SEP_FMT "No separator found (missing %s)"
178178
#define ERR_POLY "Parsing polyline: type mismatch (element: %d, info: %d)"
179179
#define ERR_CRITICAL_MISSING_FUNC "Unsupported built-in function call %ld, please report this bug"

src/lib/jsmn

Submodule jsmn updated 1 file

src/platform/fltk/utils.cxx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,10 @@ void setAppName(const char *path) {
271271
void launchExec(const char *file) {
272272
STARTUPINFO info = {sizeof(info)};
273273
PROCESS_INFORMATION processInfo;
274-
char cmd[1024];
275-
sprintf(cmd, " -x %s", file);
276-
if (!CreateProcess(appName, cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)) {
274+
char cmd[MAX_PATH];
275+
sprintf(cmd, "\"%s\" -x \"%s\"", appName, file);
276+
appLog(cmd);
277+
if (!CreateProcess(NULL, cmd, NULL, NULL, TRUE, 0, NULL, NULL, &info, &processInfo)) {
277278
appLog("failed to start %d %s %s\n", GetLastError(), appName, cmd);
278279
}
279280
}

0 commit comments

Comments
 (0)