FIXED: Creation of empty registry key

This commit is contained in:
spacy51 2007-12-27 14:31:27 +00:00
parent a742e02fbc
commit 1ad8fe2c8f
2 changed files with 10 additions and 8 deletions

View File

@ -673,6 +673,10 @@
/>
</FileConfiguration>
</File>
<File
RelativePath=".\src\win32\Reg.cpp"
>
</File>
<File
RelativePath=".\src\Text.cpp"
>
@ -973,10 +977,6 @@
RelativePath=".\src\win32\PaletteViewControl.cpp"
>
</File>
<File
RelativePath=".\src\win32\Reg.cpp"
>
</File>
<File
RelativePath=".\src\win32\ResizeDlg.cpp"
>
@ -1379,6 +1379,10 @@
RelativePath=".\src\Port.h"
>
</File>
<File
RelativePath=".\src\win32\Reg.h"
>
</File>
<File
RelativePath=".\src\Text.h"
>
@ -1535,10 +1539,6 @@
RelativePath=".\src\win32\PaletteViewControl.h"
>
</File>
<File
RelativePath=".\src\win32\Reg.h"
>
</File>
<File
RelativePath=".\src\win32\ResizeDlg.h"
>

View File

@ -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;