mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 05:50:42 +00:00
Ninja: msvc6 for-scoping
This commit is contained in:
parent
44b9bbc89d
commit
f2c12887ba
@ -448,17 +448,17 @@ Subprocess* SubprocessSet::NextFinished() {
|
||||
}
|
||||
|
||||
void SubprocessSet::Clear() {
|
||||
for (std::vector<Subprocess*>::iterator i = running_.begin();
|
||||
i != running_.end(); ++i) {
|
||||
if ((*i)->child_.hProcess) {
|
||||
std::vector<Subprocess*>::iterator it = running_.begin();
|
||||
for (; it != running_.end(); ++it) {
|
||||
if ((*it)->child_.hProcess) {
|
||||
if (!GenerateConsoleCtrlEvent(CTRL_BREAK_EVENT,
|
||||
(*i)->child_.dwProcessId))
|
||||
(*it)->child_.dwProcessId))
|
||||
Win32Fatal("GenerateConsoleCtrlEvent");
|
||||
}
|
||||
}
|
||||
for (std::vector<Subprocess*>::iterator i = running_.begin();
|
||||
i != running_.end(); ++i)
|
||||
delete *i;
|
||||
it = running_.begin();
|
||||
for (; it != running_.end(); ++it)
|
||||
delete *it;
|
||||
running_.clear();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user