summaryrefslogtreecommitdiff
path: root/plugins/AutoRun/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AutoRun/src')
-rw-r--r--plugins/AutoRun/src/autorun.h2
-rw-r--r--plugins/AutoRun/src/main.cpp1
-rw-r--r--plugins/AutoRun/src/stdafx.cpp18
3 files changed, 19 insertions, 2 deletions
diff --git a/plugins/AutoRun/src/autorun.h b/plugins/AutoRun/src/autorun.h
index 31fb3c9065..a1ae3abd01 100644
--- a/plugins/AutoRun/src/autorun.h
+++ b/plugins/AutoRun/src/autorun.h
@@ -13,5 +13,3 @@
#define SUB_KEY _T("Software\\Microsoft\\Windows\\CurrentVersion\\Run")
#define ModuleName LPGEN("Autorun")
-
-HKEY ROOT_KEY = HKEY_CURRENT_USER;
diff --git a/plugins/AutoRun/src/main.cpp b/plugins/AutoRun/src/main.cpp
index f33a164dd0..3053853734 100644
--- a/plugins/AutoRun/src/main.cpp
+++ b/plugins/AutoRun/src/main.cpp
@@ -2,6 +2,7 @@
HINSTANCE hInst;
int hLangpack;
+HKEY ROOT_KEY = HKEY_CURRENT_USER;
PLUGININFOEX pluginInfoEx = {
sizeof(PLUGININFOEX),
diff --git a/plugins/AutoRun/src/stdafx.cpp b/plugins/AutoRun/src/stdafx.cpp
new file mode 100644
index 0000000000..d1715833dc
--- /dev/null
+++ b/plugins/AutoRun/src/stdafx.cpp
@@ -0,0 +1,18 @@
+/*
+Copyright (C) 2012-13 Miranda NG Project (http://miranda-ng.org)
+
+This program is free software; you can redistribute it and/or
+modify it under the terms of the GNU General Public License
+as published by the Free Software Foundation version 2
+of the License.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "autorun.h" \ No newline at end of file