[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-patches
Subject:    gphoto2.ds: Use BOOL instead of int when appropriate
From:       Frédéric Delanoy <frederic.delanoy () gmail ! com>
Date:       2013-06-29 18:04:14
Message-ID: 1372529054-18493-1-git-send-email-frederic.delanoy () gmail ! com
[Download RAW message or body]

---
 dlls/gphoto2.ds/ui.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/gphoto2.ds/ui.c b/dlls/gphoto2.ds/ui.c
index 0b21f2e..d663552 100644
--- a/dlls/gphoto2.ds/ui.c
+++ b/dlls/gphoto2.ds/ui.c
@@ -69,17 +69,17 @@ static void UI_EndDialog(HWND hwnd, INT_PTR rc)
     EndDialog(hwnd, rc);
 }
 
-static int GetAllImages(void)
+static BOOL GetAllImages(void)
 {
     struct gphoto2_file *file;
-    int has_images = 0;
+    BOOL has_images = FALSE;
 
     LIST_FOR_EACH_ENTRY( file, &activeDS.files, struct gphoto2_file, entry)
     {
         if (strstr(file->filename,".JPG") || strstr(file->filename,".jpg"))
         {
             file->download = TRUE;
-            has_images = 1;
+            has_images = TRUE;
         }
     }
     return has_images;
-- 
1.8.2



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic