Subversion Repositories Kolibri OS

Rev

Rev 8960 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8960 Rev 9014
Line 975... Line 975...
975
.list.curitemptr        dd      ?
975
.list.curitemptr        dd      ?
976
.list.numitems          dd      ?
976
.list.numitems          dd      ?
977
.list.head              dd      ?
977
.list.head              dd      ?
978
.list.curitem           dd      ?
978
.list.curitem           dd      ?
979
.list.end               dd      ?
979
.list.end               dd      ?
980
.query_dlgdata          rb      filesearch_query_template.size
980
.query_dlgdata          rb      sizeof.FileSearch_QueryTemplate
981
.search_dlgdata         rb      filesearch_search_template.size
981
.search_dlgdata         rb      sizeof.FileSearch_SearchTemplate
982
.mask.maxlen            dd      ?
982
.mask.maxlen            dd      ?
983
.mask.pos               dd      ?
983
.mask.pos               dd      ?
984
.mask.start             dd      ?
984
.mask.start             dd      ?
985
.mask                   rb      512
985
.mask                   rb      512
986
.string.maxlen          dd      ?
986
.string.maxlen          dd      ?
Line 1011... Line 1011...
1011
        test    eax, eax
1011
        test    eax, eax
1012
        jnz     @f
1012
        jnz     @f
1013
        ret
1013
        ret
1014
@@:
1014
@@:
1015
        mov     [ebp+filesearch_data.prev_screen_vtable], panels_vtable
1015
        mov     [ebp+filesearch_data.prev_screen_vtable], panels_vtable
1016
        mov     ecx, (filesearch_query_template.size + filesearch_search_template.size) / 4
1016
        mov     ecx, (sizeof.FileSearch_QueryTemplate + sizeof.FileSearch_SearchTemplate) / 4
1017
        mov     esi, filesearch_query_template
1017
        mov     esi, filesearch_query_template
1018
        lea     edi, [ebp+filesearch_data.query_dlgdata]
1018
        lea     edi, [ebp+filesearch_data.query_dlgdata]
1019
        rep     movsd
1019
        rep     movsd
1020
        lea     eax, [ebp+filesearch_data.string.maxlen]
1020
        lea     eax, [ebp+filesearch_data.string.maxlen]
1021
        xor     ebx, ebx
1021
        xor     ebx, ebx
1022
        mov     dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.editptr2-filesearch_query_template], eax
1022
        mov     dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.edit2.text], eax
1023
        mov     dword [eax], 253
1023
        mov     dword [eax], 253
1024
        mov     [eax+4], ebx
1024
        mov     [eax+4], ebx
1025
        mov     [eax+8], ebx
1025
        mov     [eax+8], ebx
1026
        mov     [eax+12], bl
1026
        mov     [eax+12], bl
1027
        sub     eax, filesearch_data.string - filesearch_data.mask
1027
        sub     eax, filesearch_data.string - filesearch_data.mask
1028
        mov     dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.editptr1-filesearch_query_template], eax
1028
        mov     dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.edit1.text], eax
1029
        mov     dword [eax], 511
1029
        mov     dword [eax], 511
1030
        mov     [eax+8], ebx
1030
        mov     [eax+8], ebx
1031
        inc     ebx
1031
        inc     ebx
1032
        mov     word [eax+12], '*'
1032
        mov     word [eax+12], '*'
1033
        mov     [eax+4], ebx
1033
        mov     [eax+4], ebx
1034
        mov     eax, [find_in_file_dlgdata.flags_case]
1034
        mov     eax, [find_in_file_dlgdata.case.flags]
1035
        and     al, 10h
1035
        and     al, 10h
1036
        or      al, 8
1036
        or      al, 8
1037
        mov     dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_case-filesearch_query_template], eax
1037
        mov     dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.case.flags], eax
1038
        mov     eax, [find_in_file_dlgdata.flags_whole]
1038
        mov     eax, [find_in_file_dlgdata.whole.flags]
1039
        and     al, 10h
1039
        and     al, 10h
1040
        or      al, 8
1040
        or      al, 8
1041
        mov     dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_whole-filesearch_query_template], eax
1041
        mov     dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.whole.flags], eax
1042
        lea     edi, [ebp+filesearch_data.caption]
1042
        lea     edi, [ebp+filesearch_data.caption]
1043
        mov     dword [ebp+dlgtemplate.title+filesearch_data.search_dlgdata], edi
1043
        mov     dword [ebp+dlgtemplate.title+filesearch_data.search_dlgdata], edi
1044
        lea     eax, [ebp+filesearch_data.list.curitemptr]
1044
        lea     eax, [ebp+filesearch_data.list.curitemptr]
1045
        mov     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data1-filesearch_search_template], eax
1045
        mov     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.list1.text], eax
1046
.reinit:
1046
.reinit:
1047
        xor     ebx, ebx
1047
        xor     ebx, ebx
1048
        or      [ebp+filesearch_data.tid], -1
1048
        or      [ebp+filesearch_data.tid], -1
1049
        mov     [ebp+filesearch_data.slot], ebx
1049
        mov     [ebp+filesearch_data.slot], ebx
1050
        mov     [ebp+filesearch_data.result_blocks], ebx
1050
        mov     [ebp+filesearch_data.result_blocks], ebx
Line 1079... Line 1079...
1079
        mov     [ebx + dlgtemplate.x], 6
1079
        mov     [ebx + dlgtemplate.x], 6
1080
        sub     eax, 12
1080
        sub     eax, 12
1081
        mov     [ebx + dlgtemplate.width], eax
1081
        mov     [ebx + dlgtemplate.width], eax
1082
        dec     eax
1082
        dec     eax
1083
        dec     eax
1083
        dec     eax
1084
        mov     [ebx - filesearch_query_template + filesearch_query_template.width2], eax
1084
        mov     [ebx + FileSearch_QueryTemplate.edit1.x2], eax
1085
        mov     [ebx - filesearch_query_template + filesearch_query_template.width3], eax
1085
        mov     [ebx + FileSearch_QueryTemplate.edit2.x2], eax
1086
        shr     eax, 1
1086
        shr     eax, 1
1087
        dec     eax
1087
        dec     eax
1088
        dec     eax
1088
        dec     eax
1089
        mov     [ebx - filesearch_query_template + filesearch_query_template.search_x2], eax
1089
        mov     [ebx + FileSearch_QueryTemplate.search.x2], eax
1090
        sub     eax, aSearchBLength-1
1090
        sub     eax, aSearchBLength-1
1091
        mov     [ebx - filesearch_query_template + filesearch_query_template.search_x1], eax
1091
        mov     [ebx + FileSearch_QueryTemplate.search.x1], eax
1092
        add     eax, aSearchBLength+3
1092
        add     eax, aSearchBLength+3
1093
        mov     [ebx - filesearch_query_template + filesearch_query_template.cnl_x1], eax
1093
        mov     [ebx + FileSearch_QueryTemplate.cnl.x1], eax
1094
        add     eax, aCancelBLength-1
1094
        add     eax, aCancelBLength-1
1095
        mov     [ebx - filesearch_query_template + filesearch_query_template.cnl_x2], eax
1095
        mov     [ebx + FileSearch_QueryTemplate.cnl.x2], eax
1096
        mov     eax, [cur_height]
1096
        mov     eax, [cur_height]
1097
        sub     eax, [ebx + dlgtemplate.height]
1097
        sub     eax, [ebx + dlgtemplate.height]
1098
        shr     eax, 1
1098
        shr     eax, 1
1099
        mov     [ebx + dlgtemplate.y], eax
1099
        mov     [ebx + dlgtemplate.y], eax
1100
        jmp     .dlg_prepared
1100
        jmp     .dlg_prepared
Line 1119... Line 1119...
1119
        mov     [ebx + dlgtemplate.width], eax
1119
        mov     [ebx + dlgtemplate.width], eax
1120
        sub     edx, eax
1120
        sub     edx, eax
1121
        shr     edx, 1
1121
        shr     edx, 1
1122
        mov     [ebx + dlgtemplate.x], edx
1122
        mov     [ebx + dlgtemplate.x], edx
1123
        dec     eax
1123
        dec     eax
1124
        mov     [ebx + filesearch_search_template.width1 - filesearch_search_template], eax
1124
        mov     [ebx + FileSearch_SearchTemplate.list1.x2], eax
1125
        mov     [ebx + filesearch_search_template.width4 - filesearch_search_template], eax
1125
        mov     [ebx + FileSearch_SearchTemplate.lbl2.x2], eax
1126
        cmp     [ebp + filesearch_data.slot], 0
1126
        cmp     [ebp + filesearch_data.slot], 0
1127
        jnz     @f
1127
        jnz     @f
1128
        mov     [ebx + filesearch_search_template.width3 - filesearch_search_template], eax
1128
        mov     [ebx + FileSearch_SearchTemplate.lbl1.x2], eax
1129
@@:
1129
@@:
1130
        sub     eax, aNewSearchLen + aGotoLen + aViewLen + aCancelB2Length - 1
1130
        sub     eax, aNewSearchLen + aGotoLen + aViewLen + aCancelB2Length - 1
1131
        cdq
1131
        cdq
1132
        push    5
1132
        push    5
1133
        pop     ecx
1133
        pop     ecx
1134
        idiv    ecx
1134
        idiv    ecx
1135
        sar     edx, 1
1135
        sar     edx, 1
1136
        add     edx, eax
1136
        add     edx, eax
1137
        inc     eax
1137
        inc     eax
1138
        mov     [ebx + filesearch_search_template.btn1x1 - filesearch_search_template], edx
1138
        mov     [ebx + FileSearch_SearchTemplate.btn1.x1], edx
1139
        add     edx, aNewSearchLen-1
1139
        add     edx, aNewSearchLen-1
1140
        mov     [ebx + filesearch_search_template.btn1x2 - filesearch_search_template], edx
1140
        mov     [ebx + FileSearch_SearchTemplate.btn1.x2], edx
1141
        add     edx, eax
1141
        add     edx, eax
1142
        mov     [ebx + filesearch_search_template.btn2x1 - filesearch_search_template], edx
1142
        mov     [ebx + FileSearch_SearchTemplate.btn2.x1], edx
1143
        add     edx, aGotoLen-1
1143
        add     edx, aGotoLen-1
1144
        mov     [ebx + filesearch_search_template.btn2x2 - filesearch_search_template], edx
1144
        mov     [ebx + FileSearch_SearchTemplate.btn2.x2], edx
1145
        add     edx, eax
1145
        add     edx, eax
1146
        mov     [ebx + filesearch_search_template.btn3x1 - filesearch_search_template], edx
1146
        mov     [ebx + FileSearch_SearchTemplate.btn3.x1], edx
1147
        add     edx, aViewLen-1
1147
        add     edx, aViewLen-1
1148
        mov     [ebx + filesearch_search_template.btn3x2 - filesearch_search_template], edx
1148
        mov     [ebx + FileSearch_SearchTemplate.btn3.x2], edx
1149
        add     edx, eax
1149
        add     edx, eax
1150
        mov     [ebx + filesearch_search_template.btn4x1 - filesearch_search_template], edx
1150
        mov     [ebx + FileSearch_SearchTemplate.btn4.x1], edx
1151
        add     edx, aCancelB2Length-1
1151
        add     edx, aCancelB2Length-1
1152
        mov     [ebx + filesearch_search_template.btn4x2 - filesearch_search_template], edx
1152
        mov     [ebx + FileSearch_SearchTemplate.btn4.x2], edx
1153
        mov     eax, [cur_height]
1153
        mov     eax, [cur_height]
1154
        mov     edx, eax
1154
        mov     edx, eax
1155
        sub     eax, 8
1155
        sub     eax, 8
1156
        cmp     eax, 6
1156
        cmp     eax, 6
1157
        jae     @f
1157
        jae     @f
Line 1160... Line 1160...
1160
        mov     [ebx + dlgtemplate.height], eax
1160
        mov     [ebx + dlgtemplate.height], eax
1161
        sub     edx, eax
1161
        sub     edx, eax
1162
        shr     edx, 1
1162
        shr     edx, 1
1163
        mov     [ebx + dlgtemplate.y], edx
1163
        mov     [ebx + dlgtemplate.y], edx
1164
        dec     eax
1164
        dec     eax
1165
        mov     [ebx + filesearch_search_template.btn1y - filesearch_search_template], eax
1165
        mov     [ebx + FileSearch_SearchTemplate.btn1.y1], eax
1166
        mov     [ebx + filesearch_search_template.btn2y - filesearch_search_template], eax
1166
        mov     [ebx + FileSearch_SearchTemplate.btn2.y1], eax
1167
        mov     [ebx + filesearch_search_template.btn3y - filesearch_search_template], eax
1167
        mov     [ebx + FileSearch_SearchTemplate.btn3.y1], eax
1168
        mov     [ebx + filesearch_search_template.btn4y - filesearch_search_template], eax
1168
        mov     [ebx + FileSearch_SearchTemplate.btn4.y1], eax
1169
        dec     eax
1169
        dec     eax
1170
        mov     [ebx + filesearch_search_template.y5 - filesearch_search_template], eax
1170
        mov     [ebx + FileSearch_SearchTemplate.lin2.y1], eax
1171
        dec     eax
1171
        dec     eax
1172
        mov     [ebx + filesearch_search_template.y3 - filesearch_search_template], eax
1172
        mov     [ebx + FileSearch_SearchTemplate.lbl1.y1], eax
1173
        mov     [ebx + filesearch_search_template.y4 - filesearch_search_template], eax
1173
        mov     [ebx + FileSearch_SearchTemplate.lbl2.y1], eax
1174
        dec     eax
1174
        dec     eax
1175
        mov     [ebx + filesearch_search_template.y2 - filesearch_search_template], eax
1175
        mov     [ebx + FileSearch_SearchTemplate.lin1.y1], eax
1176
        dec     eax
1176
        dec     eax
1177
        mov     [ebx + filesearch_search_template.height1 - filesearch_search_template], eax
1177
        mov     [ebx + FileSearch_SearchTemplate.list1.y2], eax
1178
.dlg_prepared:
1178
.dlg_prepared:
1179
        call    draw_dialog_shadow
1179
        call    draw_dialog_shadow
1180
        push    ebx
1180
        push    ebx
1181
        call    DrawDialogBox
1181
        call    DrawDialogBox
1182
        ret
1182
        ret
Line 1265... Line 1265...
1265
        test    eax, eax
1265
        test    eax, eax
1266
        jz      filesearch_OnIdle.ret
1266
        jz      filesearch_OnIdle.ret
1267
        cmp     eax, -1
1267
        cmp     eax, -1
1268
        jz      .esc
1268
        jz      .esc
1269
        sub     eax, ebp
1269
        sub     eax, ebp
1270
        cmp     eax, filesearch_data.query_dlgdata+filesearch_query_template.search_btn-filesearch_query_template
1270
        cmp     eax, filesearch_data.query_dlgdata+FileSearch_QueryTemplate.search
1271
        jz      .query
1271
        jz      .query
1272
        cmp     eax, filesearch_data.search_dlgdata+filesearch_search_template.btn1-filesearch_search_template
1272
        cmp     eax, filesearch_data.search_dlgdata+FileSearch_SearchTemplate.btn1
1273
        jz      .newsearch
1273
        jz      .newsearch
1274
        cmp     eax, filesearch_data.search_dlgdata+filesearch_search_template.btn2-filesearch_search_template
1274
        cmp     eax, filesearch_data.search_dlgdata+FileSearch_SearchTemplate.btn2
1275
        jz      .goto
1275
        jz      .goto
1276
        cmp     eax, filesearch_data.search_dlgdata+filesearch_search_template.btn3-filesearch_search_template
1276
        cmp     eax, filesearch_data.search_dlgdata+FileSearch_SearchTemplate.btn3
1277
        jz      .view
1277
        jz      .view
1278
.esc:
1278
.esc:
1279
        cmp     dword [ebp+filesearch_data.slot], 0
1279
        cmp     dword [ebp+filesearch_data.slot], 0
1280
        jz      .exit
1280
        jz      .exit
1281
        mov     [ebp+filesearch_data.stop], 2
1281
        mov     [ebp+filesearch_data.stop], 2
Line 1415... Line 1415...
1415
        lodsb
1415
        lodsb
1416
        stosb
1416
        stosb
1417
        test    al, al
1417
        test    al, al
1418
        jnz     @b
1418
        jnz     @b
1419
        lea     edi, [ebp+filesearch_data.statusstr]
1419
        lea     edi, [ebp+filesearch_data.statusstr]
1420
        mov     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data3-filesearch_search_template], edi
1420
        mov     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl1.text], edi
1421
        mov     esi, aSearchingIn
1421
        mov     esi, aSearchingIn
1422
@@:
1422
@@:
1423
        lodsb
1423
        lodsb
1424
        stosb
1424
        stosb
1425
        cmp     al, '"'
1425
        cmp     al, '"'
Line 1449... Line 1449...
1449
@@:
1449
@@:
1450
        lodsb
1450
        lodsb
1451
        stosb
1451
        stosb
1452
        test    al, al
1452
        test    al, al
1453
        jnz     @b
1453
        jnz     @b
1454
        sub     edi, dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data3-filesearch_search_template]
1454
        sub     edi, dword [ebp +filesearch_data.search_dlgdata +FileSearch_SearchTemplate.lbl1.text]
1455
        mov     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.width3-filesearch_search_template], edi
1455
        mov     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl1.x2], edi
1456
        inc     edi
1456
        inc     edi
1457
        mov     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.x4-filesearch_search_template], edi
1457
        mov     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl2.x1], edi
1458
        lea     eax, [ebp+filesearch_data.curdir]
1458
        lea     eax, [ebp+filesearch_data.curdir]
1459
        mov     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data4-filesearch_search_template], eax
1459
        mov     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl2.text], eax
1460
        call    filesearch_set_dlgflags         ; use it? I think, yes
1460
        call    filesearch_set_dlgflags         ; use it? I think, yes
1461
        cmp     [ebp+filesearch_data.slot], 0
1461
        cmp     [ebp+filesearch_data.slot], 0
1462
        jnz     @f
1462
        jnz     @f
1463
        call    filesearch_done
1463
        call    filesearch_done
1464
@@:
1464
@@:
Line 1467... Line 1467...
1467
filesearch_done:
1467
filesearch_done:
1468
        cmp     [active_screen_data], ebp
1468
        cmp     [active_screen_data], ebp
1469
        jnz     @f
1469
        jnz     @f
1470
        or      [idle_interval], -1
1470
        or      [idle_interval], -1
1471
@@:
1471
@@:
1472
        and     dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data4-filesearch_search_template], 0
1472
        and     dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl2.text], 0
1473
        mov     edi, dword [ebp+filesearch_data.search_dlgdata+filesearch_search_template.data3-filesearch_search_template]
1473
        mov     edi, dword [ebp+filesearch_data.search_dlgdata+FileSearch_SearchTemplate.lbl1.text]
1474
        mov     esi, aSearchDone
1474
        mov     esi, aSearchDone
1475
@@:
1475
@@:
1476
        lodsb
1476
        lodsb
1477
        stosb
1477
        stosb
1478
        cmp     al, '?'
1478
        cmp     al, '?'
Line 1558... Line 1558...
1558
filesearch_IsHandleUsed:
1558
filesearch_IsHandleUsed:
1559
        test    ebp, ebp
1559
        test    ebp, ebp
1560
        ret
1560
        ret
Line 1561... Line 1561...
1561
 
1561
 
1562
filesearch_set_dlgflags:
1562
filesearch_set_dlgflags:
1563
        mov     eax, dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_case-filesearch_query_template]
1563
        mov     eax, dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.case.flags]
1564
        and     al, 10h
1564
        and     al, 10h
1565
        or      al, 8
1565
        or      al, 8
1566
        mov     [find_in_file_dlgdata.flags_case], eax
1566
        mov     [find_in_file_dlgdata.case.flags], eax
1567
        mov     eax, dword [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_whole-filesearch_query_template]
1567
        mov     eax, dword [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.whole.flags]
1568
        and     al, 10h
1568
        and     al, 10h
1569
        or      al, 8
1569
        or      al, 8
1570
        mov     [find_in_file_dlgdata.flags_whole], eax
1570
        mov     [find_in_file_dlgdata.whole.flags], eax
1571
        lea     esi, [ebp+filesearch_data.string]
1571
        lea     esi, [ebp+filesearch_data.string]
1572
        mov     edi, SearchString
1572
        mov     edi, SearchString
1573
        and     dword [edi-4], 0
1573
        and     dword [edi-4], 0
1574
        and     dword [edi-8], 0
1574
        and     dword [edi-8], 0
Line 1606... Line 1606...
1606
        mov     [ebp+filesearch_data.skip_errors_mask], cl
1606
        mov     [ebp+filesearch_data.skip_errors_mask], cl
1607
        lea     ebx, [ebp+filesearch_data.string]
1607
        lea     ebx, [ebp+filesearch_data.string]
1608
        cmp     byte [ebx], dl
1608
        cmp     byte [ebx], dl
1609
        jz      .noprepare
1609
        jz      .noprepare
1610
        mov     esi, tolower_table
1610
        mov     esi, tolower_table
1611
        test    byte [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_case-filesearch_query_template], 10h
1611
        test    byte [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.case.flags], 10h
1612
        jz      @f
1612
        jz      @f
1613
        mov     esi, identical_table
1613
        mov     esi, identical_table
1614
@@:
1614
@@:
1615
        test    byte [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_whole-filesearch_query_template], 10h
1615
        test    byte [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.whole.flags], 10h
1616
        setnz   al
1616
        setnz   al
1617
        push    eax
1617
        push    eax
1618
        push    ecx     ; force cp866
1618
        push    ecx     ; force cp866
1619
        call    search_string_pre
1619
        call    search_string_pre
1620
.noprepare:
1620
.noprepare:
Line 1878... Line 1878...
1878
        mov     [ebx], eax
1878
        mov     [ebx], eax
1879
        mov     [ebx+4], eax
1879
        mov     [ebx+4], eax
1880
        mov     [ebx+8], eax
1880
        mov     [ebx+8], eax
1881
        mov     dword [ebx+12], search_filebuf_size
1881
        mov     dword [ebx+12], search_filebuf_size
1882
        mov     edi, edx
1882
        mov     edi, edx
1883
        test    byte [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_whole-filesearch_query_template], 10h
1883
        test    byte [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.whole.flags], 10h
1884
        jz      .loop
1884
        jz      .loop
1885
        add     edi, 256
1885
        add     edi, 256
1886
.loop:
1886
.loop:
1887
.read_retry:
1887
.read_retry:
1888
	call	filesearch_thread.check_stop
1888
	call	filesearch_thread.check_stop
Line 1947... Line 1947...
1947
	add	[ebp+filesearch_data.fs.pos_low], ebx
1947
	add	[ebp+filesearch_data.fs.pos_low], ebx
1948
	adc	[ebp+filesearch_data.fs.pos_high], 0
1948
	adc	[ebp+filesearch_data.fs.pos_high], 0
1949
	cmp	ebx, search_filebuf_size
1949
	cmp	ebx, search_filebuf_size
1950
	jz	.loop
1950
	jz	.loop
1951
; EOF, last chance for whole-words-only search
1951
; EOF, last chance for whole-words-only search
1952
	test	byte [ebp+filesearch_data.query_dlgdata+filesearch_query_template.flags_whole-filesearch_query_template], 10h
1952
	test	byte [ebp+filesearch_data.query_dlgdata+FileSearch_QueryTemplate.whole.flags], 10h
1953
	jz	.ret_failed
1953
	jz	.ret_failed
1954
	movzx	edi, byte [edi+' ']
1954
	movzx	edi, byte [edi+' ']
1955
	cmp	edi, ecx
1955
	cmp	edi, ecx
1956
	jnz	.ret_failed
1956
	jnz	.ret_failed
1957
	clc
1957
	clc