Commit cd39f0cd authored by Austin English's avatar Austin English Committed by Alexandre Julliard

progman: Avoid assigning a variable to itself (LLVM/Clang).

parent 6b2c9505
...@@ -272,10 +272,8 @@ VOID PROGRAM_ExecuteProgram(HLOCAL hProgram) ...@@ -272,10 +272,8 @@ VOID PROGRAM_ExecuteProgram(HLOCAL hProgram)
{ {
PROGRAM *program = LocalLock(hProgram); PROGRAM *program = LocalLock(hProgram);
LPSTR lpszCmdLine = LocalLock(program->hCmdLine); LPSTR lpszCmdLine = LocalLock(program->hCmdLine);
LPSTR lpszWorkDir = LocalLock(program->hWorkDir);
/* FIXME set working directory */ /* FIXME set working directory from program->hWorkDir */
lpszWorkDir = lpszWorkDir;
WinExec(lpszCmdLine, program->nCmdShow); WinExec(lpszCmdLine, program->nCmdShow);
if (Globals.bMinOnRun) CloseWindow(Globals.hMainWnd); if (Globals.bMinOnRun) CloseWindow(Globals.hMainWnd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment