1
0
mirror of synced 2024-11-23 21:40:58 +01:00

iauth: Fix hanging on reinitialization

This commit is contained in:
Kevin Trocolli 2023-01-19 14:25:29 -05:00
parent 86e984b6d7
commit 914ddc3e93

View File

@ -37,13 +37,13 @@ static HRESULT STDMETHODCALLTYPE IAuth_QueryInterface(IAuth FAR *This, REFIID ri
static ULONG STDMETHODCALLTYPE IAuth_AddRef(IAuth FAR *This)
{
dprintf("IAuth: AddRef\n");
// dprintf("IAuth: AddRef\n");
return ++REF_COUNT;
}
static ULONG STDMETHODCALLTYPE IAuth_Release(IAuth FAR *This)
{
dprintf("IAuth: Release\n");
// dprintf("IAuth: Release\n");
return --REF_COUNT;
}
@ -137,10 +137,11 @@ static HRESULT STDMETHODCALLTYPE IAuth_GetUpdaterState(IAuth FAR *This, struct a
arr->amauth_init_state = amauthd_state;
arr->MemberC4 = 0;
if (amauthd_state == 5) {
amauthd_state = 6;
} else if (amauthd_state == 6) {
amauthd_state = 9;
switch (amauthd_state) {
case 5: amauthd_state = 6; break;
case 6: amauthd_state = 15; break;
case 15: amauthd_state = 9; break;
default: break;
}
return S_OK;
@ -367,7 +368,6 @@ static HRESULT STDMETHODCALLTYPE IAuth_Func23(IAuth FAR *This, int64_t p0)
static HRESULT STDMETHODCALLTYPE IAuth_Func24(IAuth FAR *This)
{
dprintf("IAuth: %s hit!\n", __func__);
return S_OK;
}