Merge remote-tracking branch 'upstream/master'

This commit is contained in:
Duckbill
2017-12-31 11:16:44 +03:00
6 changed files with 19 additions and 3 deletions

View File

@@ -21,6 +21,7 @@ enum multiOptions
DEFAULTEMU = 0,
BRIGHTNESS,
SPLASH,
SPLASH_DURATION,
PIN,
NEWCPU
};

View File

@@ -58,13 +58,16 @@ Result UnregisterProcess(u32 pid)
svcCloseHandle(processData->notificationSemaphore);
// Unregister the services registered by the process
for(u32 i = 0; i < nbServices; i++)
u32 i = 0;
while(i < nbServices)
{
if(servicesInfo[i].pid == pid)
{
svcCloseHandle(servicesInfo[i].clientPort);
servicesInfo[i] = servicesInfo[--nbServices];
}
else
++i;
}
moveNode(processData, &freeProcessDataList, false);