ecore_exe: remove infinite loop when killin process
authorVincent Torri <vincent dot torri at gmail dot com>
Sun, 27 Sep 2015 10:15:04 +0000 (12:15 +0200)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 13 Oct 2015 00:21:59 +0000 (17:21 -0700)
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore/ecore_exe_win32.c

index 21ddb71..7c8d90b 100644 (file)
@@ -742,7 +742,7 @@ _impl_ecore_exe_interrupt(Ecore_Exe *obj, Ecore_Exe_Data *exe)
    CloseHandle(exe->process);
    exe->process = NULL;
    exe->sig = ECORE_EXE_WIN32_SIGINT;
-   while (EnumWindows(_ecore_exe_enum_windows_procedure, (LPARAM)obj)) ;
+   EnumWindows(_ecore_exe_enum_windows_procedure, (LPARAM)obj);
 }
 
 void
@@ -753,7 +753,7 @@ _impl_ecore_exe_quit(Ecore_Exe *obj, Ecore_Exe_Data *exe)
    CloseHandle(exe->process);
    exe->process = NULL;
    exe->sig = ECORE_EXE_WIN32_SIGQUIT;
-   while (EnumWindows(_ecore_exe_enum_windows_procedure, (LPARAM)obj)) ;
+   EnumWindows(_ecore_exe_enum_windows_procedure, (LPARAM)obj);
 }
 
 void