Fix issue where after a backend change restart, the new instance was considered secondary.

This commit is contained in:
Henrik Rydgård committed 2020-08-06 10:19:58 +02:00
1 parent ff248ff94f
commit f9a1a0eee5
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -136,9 +136,9 @@ void InitInstanceCounter() {
void ShutdownInstanceCounter() {
#if PPSSPP_PLATFORM(WINDOWS)
if (hIDMapFile != NULL) {
if (hIDMapFile) {
CloseHandle(hIDMapFile); // If program exited(or crashed?) or the last handle reference closed the shared memory object will be deleted.
hIDMapFile = NULL;
hIDMapFile = nullptr;
}
#elif PPSSPP_PLATFORM(ANDROID)
// Do nothing