+ if(res == LB_ERR || index < atoi( buf )) break;\r
+ }\r
+ j = i/2;\r
+ while(i-j > 1) {\r
+ n = (i + j) >> 1;\r
+ res = SendDlgItemMessage( gameListDialog, OPT_GameListText, LB_GETTEXT, n, (LPARAM)buf );\r
+ if(res == LB_ERR || index < (k = atoi( buf ))) i = n; else {\r
+ j = n;\r
+ if(index == k) break;\r
+ }\r