[USERENV] HACK: add a sleep to try to work around CORE-17263.

This commit is contained in:
Thomas Faber 2020-12-12 21:48:53 +01:00
parent afbff37d98
commit 9f3175bf3d

View File

@ -1104,6 +1104,10 @@ CreateUserProfileExW(
bRet = FALSE;
}
/* HACKHACKHACK: CORE-17263 -- wait for a little bit to make sure all
* KCBs have been deref'd before we unload */
Sleep(1000);
/* Unload the hive */
AcquireRemoveRestorePrivilege(TRUE);
RegUnLoadKeyW(HKEY_USERS, SidString);