From af71ce16bfd7d471c889c21c1603ef17d5eced06 Mon Sep 17 00:00:00 2001 From: Mike McCormack Date: Thu, 22 Sep 2005 10:49:26 +0000 Subject: [PATCH] Fix an error introduced when converting dialog lists to standard lists. --- dlls/msi/dialog.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dlls/msi/dialog.c b/dlls/msi/dialog.c index 204d524670a..b0560341399 100644 --- a/dlls/msi/dialog.c +++ b/dlls/msi/dialog.c @@ -149,8 +149,8 @@ static msi_control *msi_dialog_find_control( msi_dialog *dialog, LPCWSTR name ) return NULL; LIST_FOR_EACH_ENTRY( control, &dialog->controls, msi_control, entry ) if( !strcmpW( control->name, name ) ) /* FIXME: case sensitive? */ - break; - return control; + return control; + return NULL; } static msi_control *msi_dialog_find_control_by_hwnd( msi_dialog *dialog, HWND hwnd ) @@ -159,8 +159,8 @@ static msi_control *msi_dialog_find_control_by_hwnd( msi_dialog *dialog, HWND hw LIST_FOR_EACH_ENTRY( control, &dialog->controls, msi_control, entry ) if( hwnd == control->hwnd ) - break; - return control; + return control; + return NULL; } static LPWSTR msi_get_deformatted_field( MSIPACKAGE *package, MSIRECORD *rec, int field ) -- 2.11.4.GIT