[LyX/master] Amend 109ea2be4a21ca93d22ab25703b3352a50fbbe3b

Thibaut Cuvelier tcuvelier at lyx.org
Sun Feb 6 04:03:45 UTC 2022


commit 1eb19cb8e3835fceb658bc5e4ac5264641cb7b5d
Author: Thibaut Cuvelier <tcuvelier at lyx.org>
Date:   Sun Feb 6 05:35:07 2022 +0100

    Amend 109ea2be4a21ca93d22ab25703b3352a50fbbe3b
    
    The Windows code wasn't adapted when a variable was renamed (unlike the Linux one).
---
 src/support/ForkedCalls.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/support/ForkedCalls.cpp b/src/support/ForkedCalls.cpp
index f0b2c7e..e770c4d 100644
--- a/src/support/ForkedCalls.cpp
+++ b/src/support/ForkedCalls.cpp
@@ -408,7 +408,7 @@ int ForkedCall::generateChild()
 
 	startup.cb = sizeof(STARTUPINFO);
 
-	if (CreateProcess(0, (LPSTR)line.c_str(), 0, 0, FALSE,
+	if (CreateProcess(0, (LPSTR)command_.c_str(), 0, 0, FALSE,
 		CREATE_NO_WINDOW, 0, 0, &startup, &process)) {
 		CloseHandle(process.hThread);
 		cpid = (pid_t)process.hProcess;


More information about the lyx-cvs mailing list