Skip to content

Commit

Permalink
Remove set but unused variable dwStatus (closes #3440276).
Browse files Browse the repository at this point in the history
  • Loading branch information
eht16 committed Nov 20, 2011
1 parent 917ce32 commit 22ba6de
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,8 @@ static gboolean CreateChildProcess(geany_win32_spawn *gw_spawn, TCHAR *szCmdline
else
{
gint i;
DWORD dwStatus;

for (i = 0; i < 2 && (dwStatus = WaitForSingleObject(piProcInfo.hProcess, 30*1000)) == WAIT_TIMEOUT; i++)
for (i = 0; i < 2 && WaitForSingleObject(piProcInfo.hProcess, 30*1000) == WAIT_TIMEOUT; i++)
{
geany_debug("CreateChildProcess: CreateProcess failed");
TerminateProcess(piProcInfo.hProcess, WAIT_TIMEOUT); /* NOTE: This will not kill grandkids. */
Expand Down

0 comments on commit 22ba6de

Please sign in to comment.