mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-02 15:28:03 +00:00
Call WriteOutProfiles16 to make sure that last profile gets written.
This commit is contained in:
parent
f314e5e76b
commit
fb2f84ec20
1 changed files with 2 additions and 5 deletions
|
@ -85,15 +85,12 @@ static BOOL process_attach(void)
|
|||
*/
|
||||
BOOL WINAPI MAIN_KernelInit( HINSTANCE hinst, DWORD reason, LPVOID reserved )
|
||||
{
|
||||
static int process_count;
|
||||
|
||||
switch(reason)
|
||||
{
|
||||
case DLL_PROCESS_ATTACH:
|
||||
if (!process_count++) return process_attach();
|
||||
break;
|
||||
return process_attach();
|
||||
case DLL_PROCESS_DETACH:
|
||||
--process_count;
|
||||
WriteOutProfiles16();
|
||||
break;
|
||||
}
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue