iauth: Fix hanging on reinitialization
This commit is contained in:
parent
86e984b6d7
commit
914ddc3e93
@ -37,13 +37,13 @@ static HRESULT STDMETHODCALLTYPE IAuth_QueryInterface(IAuth FAR *This, REFIID ri
|
|||||||
|
|
||||||
static ULONG STDMETHODCALLTYPE IAuth_AddRef(IAuth FAR *This)
|
static ULONG STDMETHODCALLTYPE IAuth_AddRef(IAuth FAR *This)
|
||||||
{
|
{
|
||||||
dprintf("IAuth: AddRef\n");
|
// dprintf("IAuth: AddRef\n");
|
||||||
return ++REF_COUNT;
|
return ++REF_COUNT;
|
||||||
}
|
}
|
||||||
|
|
||||||
static ULONG STDMETHODCALLTYPE IAuth_Release(IAuth FAR *This)
|
static ULONG STDMETHODCALLTYPE IAuth_Release(IAuth FAR *This)
|
||||||
{
|
{
|
||||||
dprintf("IAuth: Release\n");
|
// dprintf("IAuth: Release\n");
|
||||||
return --REF_COUNT;
|
return --REF_COUNT;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -137,10 +137,11 @@ static HRESULT STDMETHODCALLTYPE IAuth_GetUpdaterState(IAuth FAR *This, struct a
|
|||||||
arr->amauth_init_state = amauthd_state;
|
arr->amauth_init_state = amauthd_state;
|
||||||
arr->MemberC4 = 0;
|
arr->MemberC4 = 0;
|
||||||
|
|
||||||
if (amauthd_state == 5) {
|
switch (amauthd_state) {
|
||||||
amauthd_state = 6;
|
case 5: amauthd_state = 6; break;
|
||||||
} else if (amauthd_state == 6) {
|
case 6: amauthd_state = 15; break;
|
||||||
amauthd_state = 9;
|
case 15: amauthd_state = 9; break;
|
||||||
|
default: break;
|
||||||
}
|
}
|
||||||
|
|
||||||
return S_OK;
|
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)
|
static HRESULT STDMETHODCALLTYPE IAuth_Func24(IAuth FAR *This)
|
||||||
{
|
{
|
||||||
dprintf("IAuth: %s hit!\n", __func__);
|
dprintf("IAuth: %s hit!\n", __func__);
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user