patch 9.1.1288: Using wrong window in ll_resize_stack()

Problem:  Using wrong window in ll_resize_stack()
          (after v9.1.1287)
Solution: Use "wp" instead of "curwin", even though they are always the
          same value.  Fix typos in documentation (zeertzjq).

closes: #17080

Signed-off-by: zeertzjq <zeertzjq@outlook.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/src/quickfix.c b/src/quickfix.c
index decc01b..2b12fb5 100644
--- a/src/quickfix.c
+++ b/src/quickfix.c
@@ -2102,7 +2102,7 @@
 }
 
 /*
- * Free a qf_ifo_T struct completely
+ * Free a qf_info_T struct completely
  */
     static void
 qf_free_lists(qf_info_T *qi)
@@ -2365,9 +2365,9 @@
     int
 ll_resize_stack(win_T *wp, int n)
 {
-    // check if current window is a location list window;
+    // check if given window is a location list window;
     // if so then sync its 'lhistory' to the parent window or vice versa
-    if (IS_LL_WINDOW(curwin))
+    if (IS_LL_WINDOW(wp))
 	qf_sync_llw_to_win(wp);
     else
 	qf_sync_win_to_llw(wp);
@@ -2499,8 +2499,6 @@
 
 /*
  * Allocate memory for qf_lists member of qf_info_T struct.
- * 'actual' is the actual amount of lists that have been allocated for
- * (only set when function returns sucessfully)
  */
     static qf_list_T *
 qf_alloc_list_stack(int n)