From 296435b9a9262b23b49cbfb2302e36e730f292e7 Mon Sep 17 00:00:00 2001 From: elupus Date: Tue, 14 Feb 2012 00:21:44 +0100 Subject: [PATCH] changed: abort upnp directory reading if received count ever is larger than expected --- .../Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp index 1d7b20e843a24..00e3df36dce42 100644 --- a/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp +++ b/lib/libUPnP/Platinum/Source/Devices/MediaServer/PltSyncMediaBrowser.cpp @@ -284,7 +284,7 @@ PLT_SyncMediaBrowser::BrowseSync(PLT_DeviceDataReference& device, // nothing is returned back by the server. // Unless we were told to stop after reaching a certain amount to avoid // length delays - if ((browse_data->info.tm && browse_data->info.tm == list->GetItemCount()) || + if ((browse_data->info.tm && browse_data->info.tm <= list->GetItemCount()) || (max_results && list->GetItemCount() >= max_results)) break;