Index: win32ss/user/ntuser/scrollbar.c =================================================================== --- win32ss/user/ntuser/scrollbar.c (revision 59067) +++ win32ss/user/ntuser/scrollbar.c (working copy) @@ -425,13 +425,13 @@ } /* Make sure the page size is valid */ - if (Info->nPage < 0) + if ((Info->nMax - Info->nMin + 1UL) < Info->nPage) { - pSBData->page = Info->nPage = 0; + pSBData->page = Info->nPage = Info->nMax - Info->nMin + 1; } - else if ((Info->nMax - Info->nMin + 1UL) < Info->nPage) + else { - pSBData->page = Info->nPage = Info->nMax - Info->nMin + 1; + pSBData->page = Info->nPage = 0; } /* Make sure the pos is inside the range */