gphoto2.ds no files fix
Aric Stewart
aric at codeweavers.com
Thu May 4 07:59:11 CDT 2006
Return after EndDialog is no photos are selected. This prevents hangs
with empty cameras.
-aric
-------------- next part --------------
diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c
index 477c218..a75f69e 100644
--- a/dlls/gphoto2.ds/ui.c
+++ b/dlls/gphoto2.ds/ui.c
@@ -144,7 +144,10 @@ static INT_PTR CALLBACK DialogProc(HWND
int i;
if (count ==0)
+ {
EndDialog(hwnd,0);
+ return FALSE;
+ }
count = SendMessageA(list,LVM_GETITEMCOUNT,0,0);
for ( i = 0; i < count; i++)
@@ -181,7 +184,10 @@ static INT_PTR CALLBACK DialogProc(HWND
int i;
if (count ==0)
+ {
EndDialog(hwnd,0);
+ return FALSE;
+ }
for ( i = 0; i < count; i++)
{
More information about the wine-patches
mailing list