mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 03:33:02 +00:00
terminate shell service objects thread if there is nothing to do
svn path=/trunk/; revision=14434
This commit is contained in:
parent
5875f60018
commit
45ba821ec5
1 changed files with 19 additions and 17 deletions
|
@ -66,6 +66,7 @@ int SSOThread::Run()
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!sso_ptrs.empty()) {
|
||||||
MSG msg;
|
MSG msg;
|
||||||
|
|
||||||
while(_alive) {
|
while(_alive) {
|
||||||
|
@ -90,6 +91,7 @@ int SSOThread::Run()
|
||||||
(*sso_ptr)->Exec(&CGID_ShellServiceObject, OLECMDID_SAVE, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
|
(*sso_ptr)->Exec(&CGID_ShellServiceObject, OLECMDID_SAVE, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
|
||||||
delete sso_ptr;
|
delete sso_ptr;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue