mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:52:56 +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);
|
||||
}
|
||||
|
||||
if (!sso_ptrs.empty()) {
|
||||
MSG msg;
|
||||
|
||||
while(_alive) {
|
||||
|
@ -90,6 +91,7 @@ int SSOThread::Run()
|
|||
(*sso_ptr)->Exec(&CGID_ShellServiceObject, OLECMDID_SAVE, OLECMDEXECOPT_DODEFAULT, NULL, NULL);
|
||||
delete sso_ptr;
|
||||
}
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue