From fa8be1074d0a3aa817040f074919be3de9c73a33 Mon Sep 17 00:00:00 2001 From: spacy51 Date: Thu, 27 Dec 2007 14:31:27 +0000 Subject: [PATCH] FIXED: Creation of empty registry key --- trunk/VBA.vcproj | 16 ++++++++-------- trunk/src/win32/Reg.cpp | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) 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;