diff --git a/trunk/VBA.vcproj b/trunk/VBA.vcproj
index 809737ef..3d8c4181 100644
--- a/trunk/VBA.vcproj
+++ b/trunk/VBA.vcproj
@@ -673,6 +673,10 @@
/>
+
+
@@ -973,10 +977,6 @@
RelativePath=".\src\win32\PaletteViewControl.cpp"
>
-
-
@@ -1379,6 +1379,10 @@
RelativePath=".\src\Port.h"
>
+
+
@@ -1535,10 +1539,6 @@
RelativePath=".\src\win32\PaletteViewControl.h"
>
-
-
diff --git a/trunk/src/win32/Reg.cpp b/trunk/src/win32/Reg.cpp
index 750e4ac1..201ca7b5 100644
--- a/trunk/src/win32/Reg.cpp
+++ b/trunk/src/win32/Reg.cpp
@@ -29,6 +29,7 @@ bool regEnabled = true;
void regInit(const char *path)
{
+ if( regEnabled ) {
DWORD disp = 0;
LONG res = RegCreateKeyEx(HKEY_CURRENT_USER,
"Software\\Emulators\\VisualBoyAdvance",
@@ -39,6 +40,7 @@ void regInit(const char *path)
NULL,
&vbKey,
&disp);
+ }
if( regVbaPath != NULL ) {
delete regVbaPath;
regVbaPath = NULL;