projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix various segfaults and heap trashes. Thanks to Andrew Mobbs.
[u/mdw/putty]
/
window.c
diff --git
a/window.c
b/window.c
index
3cd719a
..
456f1ef
100644
(file)
--- a/
window.c
+++ b/
window.c
@@
-1347,7
+1347,8
@@
void set_sbar (int total, int start, int page) {
si.nMax = total - 1;
si.nPage = page;
si.nPos = start;
- SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
+ if (hwnd)
+ SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
}
Context get_ctx() {