https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c3b3fcd11129a4ef36edf…
commit c3b3fcd11129a4ef36edfacb97b0c92fe745577d
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Sun Oct 25 20:30:03 2020 +0100
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Sun Oct 25 20:30:03 2020 +0100
[RAPPS] Abort screenshot iteration on the first not found
This should decrease startup time / db parse time
---
base/applications/rapps/available.cpp | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/base/applications/rapps/available.cpp
b/base/applications/rapps/available.cpp
index fa266d7f5e1..075afd7063a 100644
--- a/base/applications/rapps/available.cpp
+++ b/base/applications/rapps/available.cpp
@@ -67,7 +67,9 @@ VOID
CAvailableApplicationInfo::RetrieveGeneralInfo(AvailableStrings& AvlbString
CStringW ScrnshotLocation;
if (!GetString(ScrnshotField, ScrnshotLocation))
{
- continue;
+ // We stop at the first screenshot not found,
+ // so screenshots _have_ to be consecutive
+ break;
}