mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Fix issue where after a backend change restart, the new instance was considered secondary.
This commit is contained in:
1 parent
ff248ff94f
commit
f9a1a0eee5
2 files changed
+10
-2
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user