From d84245aeda0a9e00fb1c156a3bf5ca26e5b9cb88 Mon Sep 17 00:00:00 2001 From: pagefault <> Date: Wed, 25 Apr 2001 01:08:30 +0000 Subject: [PATCH] High priority mode fix --- zsnes/src/win/winlink.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsnes/src/win/winlink.cpp b/zsnes/src/win/winlink.cpp index 79402828..8fc6c489 100644 --- a/zsnes/src/win/winlink.cpp +++ b/zsnes/src/win/winlink.cpp @@ -456,9 +456,9 @@ int RegisterWinClass ( void ) wcl.lpszMenuName = NULL; wcl.lpszClassName = "ZSNESWIN"; - if (RegisterClass(&wcl) == 0) return FALSE; + if (HighPriority == 1) SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS); - if (HighPriority == 1) SetPriorityClass(hInst, HIGH_PRIORITY_CLASS); + if (RegisterClass(&wcl) == 0) return FALSE; return TRUE; }