mirror of
https://github.com/solemnwarning/directplay-lite
synced 2024-12-30 16:45:37 +01:00
Ensure provider component is always first.
This commit is contained in:
parent
d2092b8641
commit
9659e2e84b
@ -299,9 +299,16 @@ HRESULT DirectPlay8Address::AddComponent(CONST WCHAR* CONST pwszName, CONST void
|
|||||||
delete *existing_component;
|
delete *existing_component;
|
||||||
*existing_component = new_component;
|
*existing_component = new_component;
|
||||||
}
|
}
|
||||||
|
else{
|
||||||
|
if(wcscmp(pwszName, DPNA_KEY_PROVIDER) == 0)
|
||||||
|
{
|
||||||
|
/* Provider is always the first component. */
|
||||||
|
components.insert(components.begin(), new_component);
|
||||||
|
}
|
||||||
else{
|
else{
|
||||||
components.push_back(new_component);
|
components.push_back(new_component);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return S_OK;
|
return S_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user