]> asedeno.scripts.mit.edu Git - PuTTY.git/blobdiff - windows/winctrls.c
Fix stupid typo that probably utterly broke SSH-1 support, and caused compiles
[PuTTY.git] / windows / winctrls.c
index 6d0b21cf9b02659e21a441a2eda32a438bda788a..c2d344a1064ee4dfe69fe31938868e6fdad3edd6 100644 (file)
@@ -1039,6 +1039,10 @@ int handle_prefslist(struct prefslist *hdl,
             int dest = 0;             /* initialise to placate gcc */
             switch (dlm->uNotification) {
               case DL_BEGINDRAG:
+               /* Add a dummy item to make pl_itemfrompt() work
+                * better.
+                * FIXME: this causes scrollbar glitches if the count of
+                *        listbox contains >= its height. */
                hdl->dummyitem =
                    SendDlgItemMessage(hwnd, hdl->listid,
                                       LB_ADDSTRING, 0, (LPARAM) "");