From 6556c61586d79ee0ae599248f25d591d99da8a97 Mon Sep 17 00:00:00 2001 From: Marc-André Lureau Date: Thu, 17 Jan 2013 20:16:15 +0100 Subject: Remove LIBMSI_RESULT_NO_MORE_ITEMS from API Raising an error for indicating the end of the results is really inconvenient, it's like throwing an exception for something quite normal... The user can still make a distinction when there is an error if the GError is set. --- libmsi/storages.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmsi/storages.c') diff --git a/libmsi/storages.c b/libmsi/storages.c index 6829849..7846e69 100644 --- a/libmsi/storages.c +++ b/libmsi/storages.c @@ -81,7 +81,7 @@ static unsigned storages_view_fetch_int(LibmsiView *view, unsigned row, unsigned return LIBMSI_RESULT_INVALID_PARAMETER; if (row >= sv->num_rows) - return LIBMSI_RESULT_NO_MORE_ITEMS; + return NO_MORE_ITEMS; *val = sv->storages[row]->str_index; @@ -291,7 +291,7 @@ static unsigned storages_view_find_matching_rows(LibmsiView *view, unsigned col, *handle = (MSIITERHANDLE)(uintptr_t)++index; if (index >= sv->num_rows) - return LIBMSI_RESULT_NO_MORE_ITEMS; + return NO_MORE_ITEMS; return LIBMSI_RESULT_SUCCESS; } -- cgit