mirror of
https://github.com/reactos/reactos.git
synced 2025-04-04 12:39:35 +00:00
[MKHIVE]
- Active the planned cleanup function to motivate people to actually free resources: mkhive currently leaks ~500kb of memory after a usual run - Improve debug print svn path=/trunk/; revision=47207
This commit is contained in:
parent
d28f0be86e
commit
c7721ce942
3 changed files with 14 additions and 2 deletions
|
@ -173,7 +173,7 @@ int main (int argc, char *argv[])
|
|||
return 1;
|
||||
}
|
||||
|
||||
//RegShutdownRegistry ();
|
||||
RegShutdownRegistry ();
|
||||
|
||||
printf (" Done.\n");
|
||||
|
||||
|
|
|
@ -250,7 +250,7 @@ RegDeleteKeyW(
|
|||
IN HKEY hKey,
|
||||
IN LPCWSTR lpSubKey)
|
||||
{
|
||||
DPRINT1("FIXME!\n");
|
||||
DPRINT1("FIXME: implement RegDeleteKeyW!\n");
|
||||
return ERROR_SUCCESS;
|
||||
}
|
||||
|
||||
|
@ -682,4 +682,13 @@ RegInitializeRegistry(VOID)
|
|||
&ControlSetKey);
|
||||
}
|
||||
|
||||
VOID
|
||||
RegShutdownRegistry(VOID)
|
||||
{
|
||||
/* FIXME: clean up the complete hive */
|
||||
|
||||
free(RootKey->Name);
|
||||
free(RootKey);
|
||||
}
|
||||
|
||||
/* EOF */
|
||||
|
|
|
@ -121,4 +121,7 @@ RegGetValueCount (HKEY Key);
|
|||
VOID
|
||||
RegInitializeRegistry(VOID);
|
||||
|
||||
VOID
|
||||
RegShutdownRegistry(VOID);
|
||||
|
||||
/* EOF */
|
||||
|
|
Loading…
Reference in a new issue