FIXED: Creation of empty registry key
This commit is contained in:
parent
a742e02fbc
commit
1ad8fe2c8f
16
VBA.vcproj
16
VBA.vcproj
|
@ -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"
|
||||
>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue