Merge remote-tracking branch 'upstream/master'
This commit is contained in:
@@ -21,6 +21,7 @@ enum multiOptions
|
||||
DEFAULTEMU = 0,
|
||||
BRIGHTNESS,
|
||||
SPLASH,
|
||||
SPLASH_DURATION,
|
||||
PIN,
|
||||
NEWCPU
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user