https://git.reactos.org/?p=reactos.git;a=commitdiff;h=69bd96e09f57672e6e8e3…
commit 69bd96e09f57672e6e8e3955f99d47c621ea3d7b
Author: Giannis Adamopoulos <gadamopoulos(a)reactos.org>
AuthorDate: Sun Apr 28 18:08:55 2019 +0300
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Tue Aug 20 00:43:47 2019 +0200
[RAPPS] CMainWindow: Make SelectedEnumType a member
---
base/applications/rapps/gui.cpp | 4 +++-
base/applications/rapps/include/winmain.h | 1 -
base/applications/rapps/winmain.cpp | 1 -
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/base/applications/rapps/gui.cpp b/base/applications/rapps/gui.cpp
index be6da8ff8f4..adba84ac449 100644
--- a/base/applications/rapps/gui.cpp
+++ b/base/applications/rapps/gui.cpp
@@ -792,12 +792,14 @@ class CMainWindow :
BOOL bUpdating;
ATL::CStringW szSearchPattern;
+ INT SelectedEnumType;
public:
CMainWindow() :
m_ClientPanel(NULL),
pLink(NULL),
- bSearchEnabled(FALSE)
+ bSearchEnabled(FALSE),
+ SelectedEnumType(ENUM_ALL_INSTALLED)
{
}
diff --git a/base/applications/rapps/include/winmain.h
b/base/applications/rapps/include/winmain.h
index bee3b964927..d941e52cfa2 100644
--- a/base/applications/rapps/include/winmain.h
+++ b/base/applications/rapps/include/winmain.h
@@ -25,7 +25,6 @@ typedef SETTINGS_INFO *PSETTINGS_INFO;
extern HWND hMainWnd;
extern HINSTANCE hInst;
-extern INT SelectedEnumType;
extern SETTINGS_INFO SettingsInfo;
VOID SaveSettings(HWND hwnd);
diff --git a/base/applications/rapps/winmain.cpp b/base/applications/rapps/winmain.cpp
index 5d731c54368..58e100dc661 100644
--- a/base/applications/rapps/winmain.cpp
+++ b/base/applications/rapps/winmain.cpp
@@ -15,7 +15,6 @@
HWND hMainWnd;
HINSTANCE hInst;
-INT SelectedEnumType = ENUM_ALL_INSTALLED;
SETTINGS_INFO SettingsInfo;
class CRAppsModule : public CComModule