summaryrefslogtreecommitdiff
path: root/include/m_utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-11 16:36:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-11 16:36:19 +0000
commit8f3d6729cbee5e070ad7663029baa4c8431ac456 (patch)
tree57c50bb78ebd3824df70c9d39a000e4d56800284 /include/m_utils.h
parentc559a18ca21a2a1fa3199c4bb60bcd031ec17134 (diff)
the same idea without double pointers
git-svn-id: http://svn.miranda-ng.org/main/trunk@7594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_utils.h')
-rw-r--r--include/m_utils.h19
1 files changed, 11 insertions, 8 deletions
diff --git a/include/m_utils.h b/include/m_utils.h
index 7b25987b6a..fb9c2529eb 100644
--- a/include/m_utils.h
+++ b/include/m_utils.h
@@ -471,14 +471,17 @@ __forceinline TCHAR* Utils_ReplaceVarsT(const TCHAR *szData) {
typedef struct
{
- int cbSize; // structure size
- int type; // one of ESF_* constants
- LPCSTR szModuleName; // module name to save window size and combobox strings
- LPCSTR szDataPrefix; // prefix for stored database variables
- LPCTSTR caption; // window caption
- LPTSTR *result; // initial value + result entered
- int recentCount; // number of combobox strings to store
- int timeout; // timeout for the form auto-close
+ int cbSize; // structure size
+ int type; // one of ESF_* constants
+ LPCSTR szModuleName; // module name to save window size and combobox strings
+ LPCSTR szDataPrefix; // prefix for stored database variables
+ LPCTSTR caption; // window caption
+ union {
+ LPCTSTR ptszInitVal; // initial value (note: the core DOES NOT free it)
+ LPTSTR ptszResult; // result entered (must be freed via mir_free)
+ };
+ int recentCount; // number of combobox strings to store
+ int timeout; // timeout for the form auto-close
}
ENTER_STRING;