From 5c29c440f3521f8c96de2848463a5b142857aea2 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 git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@241 a31d4220-a93d-0410-bf67-fe4944624d44 --- VBA.vcproj | 16 ++++++++-------- src/win32/Reg.cpp | 2 ++ 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/VBA.vcproj b/VBA.vcproj index 809737ef..3d8c4181 100644 --- a/VBA.vcproj +++ b/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/src/win32/Reg.cpp b/src/win32/Reg.cpp index 750e4ac1..201ca7b5 100644 --- a/src/win32/Reg.cpp +++ b/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;