FIXED: Creation of empty registry key
git-svn-id: https://svn.code.sf.net/p/vbam/code/trunk@241 a31d4220-a93d-0410-bf67-fe4944624d44
This commit is contained in:
parent
c663dde691
commit
5c29c440f3
16
VBA.vcproj
16
VBA.vcproj
|
@ -673,6 +673,10 @@
|
||||||
/>
|
/>
|
||||||
</FileConfiguration>
|
</FileConfiguration>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\win32\Reg.cpp"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Text.cpp"
|
RelativePath=".\src\Text.cpp"
|
||||||
>
|
>
|
||||||
|
@ -973,10 +977,6 @@
|
||||||
RelativePath=".\src\win32\PaletteViewControl.cpp"
|
RelativePath=".\src\win32\PaletteViewControl.cpp"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\src\win32\Reg.cpp"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\win32\ResizeDlg.cpp"
|
RelativePath=".\src\win32\ResizeDlg.cpp"
|
||||||
>
|
>
|
||||||
|
@ -1379,6 +1379,10 @@
|
||||||
RelativePath=".\src\Port.h"
|
RelativePath=".\src\Port.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
|
<File
|
||||||
|
RelativePath=".\src\win32\Reg.h"
|
||||||
|
>
|
||||||
|
</File>
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\Text.h"
|
RelativePath=".\src\Text.h"
|
||||||
>
|
>
|
||||||
|
@ -1535,10 +1539,6 @@
|
||||||
RelativePath=".\src\win32\PaletteViewControl.h"
|
RelativePath=".\src\win32\PaletteViewControl.h"
|
||||||
>
|
>
|
||||||
</File>
|
</File>
|
||||||
<File
|
|
||||||
RelativePath=".\src\win32\Reg.h"
|
|
||||||
>
|
|
||||||
</File>
|
|
||||||
<File
|
<File
|
||||||
RelativePath=".\src\win32\ResizeDlg.h"
|
RelativePath=".\src\win32\ResizeDlg.h"
|
||||||
>
|
>
|
||||||
|
|
|
@ -29,6 +29,7 @@ bool regEnabled = true;
|
||||||
|
|
||||||
void regInit(const char *path)
|
void regInit(const char *path)
|
||||||
{
|
{
|
||||||
|
if( regEnabled ) {
|
||||||
DWORD disp = 0;
|
DWORD disp = 0;
|
||||||
LONG res = RegCreateKeyEx(HKEY_CURRENT_USER,
|
LONG res = RegCreateKeyEx(HKEY_CURRENT_USER,
|
||||||
"Software\\Emulators\\VisualBoyAdvance",
|
"Software\\Emulators\\VisualBoyAdvance",
|
||||||
|
@ -39,6 +40,7 @@ void regInit(const char *path)
|
||||||
NULL,
|
NULL,
|
||||||
&vbKey,
|
&vbKey,
|
||||||
&disp);
|
&disp);
|
||||||
|
}
|
||||||
if( regVbaPath != NULL ) {
|
if( regVbaPath != NULL ) {
|
||||||
delete regVbaPath;
|
delete regVbaPath;
|
||||||
regVbaPath = NULL;
|
regVbaPath = NULL;
|
||||||
|
|
Loading…
Reference in New Issue