summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/options/options.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/options/options.cpp b/src/modules/options/options.cpp
index 3fd4cbae16..7d5f72ba0e 100644
--- a/src/modules/options/options.cpp
+++ b/src/modules/options/options.cpp
@@ -170,7 +170,7 @@ static void SaveOptionsTreeState(HWND hdlg)
tvi.cchTextMax = SIZEOF(str);
tvi.hItem = TreeView_GetRoot(GetDlgItem(hdlg, IDC_PAGETREE));
while (tvi.hItem != NULL) {
- if (SendMessageA(GetDlgItem(hdlg, IDC_PAGETREE), TVM_GETITEMA, 0, (LPARAM)&tvi)) {
+ if (SendDlgItemMessageA(hdlg, IDC_PAGETREE, TVM_GETITEMA, 0, (LPARAM)&tvi)) {
mir_snprintf(buf, SIZEOF(buf), "%s%s", OPTSTATE_PREFIX, str);
db_set_b(NULL, "Options", buf, (BYTE)((tvi.state & TVIS_EXPANDED) ? 1 : 0));
}