* MakeNSISW symbol sets don't need movable memory
* Use helper functions to read&write MRU and symbol set strings * Don't create empty MRU key when there is nothing to save * Made some helper functions static git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6618 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
6de4fbc743
commit
8577c8e9ae
4 changed files with 174 additions and 216 deletions
|
@ -34,6 +34,7 @@
|
|||
|
||||
#define MRU_LIST_SIZE 5
|
||||
#define MRU_DISPLAY_LENGTH 40
|
||||
#define SYMSETNAME_MAXLEN 40
|
||||
|
||||
void* MemAllocZI(SIZE_T cb);
|
||||
void MemSafeFree(void*mem);
|
||||
|
@ -55,6 +56,7 @@ void SetDialogFocus(HWND hDlg, HWND hCtl); // Use this and not SetFocus()!
|
|||
#define EnableItems(hwnd) EnableDisableItems(hwnd, 1)
|
||||
void EnableDisableItems(HWND hwnd, int on);
|
||||
bool OpenRegSettingsKey(HKEY &hKey, bool create = false);
|
||||
#define CreateRegSettingsKey(refhkey) OpenRegSettingsKey((refhkey), true)
|
||||
DWORD ReadRegSettingDW(LPCTSTR name, const DWORD defval);
|
||||
void RestoreWindowPos(HWND hwnd);
|
||||
void SaveWindowPos(HWND hwnd);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue