Commit b8b55de6 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

winecfg: Annotate allocation functions with __WINE_(DEALLOC|MALLOC).

parent 1f4532d5
...@@ -54,14 +54,15 @@ extern WCHAR* current_app; /* NULL means editing global settings */ ...@@ -54,14 +54,15 @@ extern WCHAR* current_app; /* NULL means editing global settings */
void set_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *value); void set_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *value);
void set_reg_key_dword(HKEY root, const WCHAR *path, const WCHAR *name, DWORD value); void set_reg_key_dword(HKEY root, const WCHAR *path, const WCHAR *name, DWORD value);
WCHAR *get_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *def); WCHAR *get_reg_key(HKEY root, const WCHAR *path, const WCHAR *name, const WCHAR *def)
__WINE_DEALLOC(free) __WINE_MALLOC;
BOOL reg_key_exists(HKEY root, const WCHAR *path, const WCHAR *name); BOOL reg_key_exists(HKEY root, const WCHAR *path, const WCHAR *name);
void apply(void); void apply(void);
WCHAR **enumerate_values(HKEY root, const WCHAR *path); WCHAR **enumerate_values(HKEY root, const WCHAR *path) __WINE_DEALLOC(free) __WINE_MALLOC;
/* Load a string from the resources. Allocated with malloc */ /* Load a string from the resources. Allocated with malloc */
WCHAR* load_string (UINT id); WCHAR* load_string(UINT id) __WINE_DEALLOC(free) __WINE_MALLOC;
/* returns a string of the form "AppDefaults\\appname.exe\\section", or just "section" if /* returns a string of the form "AppDefaults\\appname.exe\\section", or just "section" if
the user is editing the global settings. the user is editing the global settings.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment