From 44e942fbb14d249843c8b212f14c4bbf901ad6c1 Mon Sep 17 00:00:00 2001 From: Saulius Krasuckas Date: Mon, 20 Feb 2006 11:12:53 +0100 Subject: [PATCH] mscms: Branching fixes for some test routines --- dlls/mscms/tests/profile.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/dlls/mscms/tests/profile.c b/dlls/mscms/tests/profile.c index c982528f514..5714cb63721 100644 --- a/dlls/mscms/tests/profile.c +++ b/dlls/mscms/tests/profile.c @@ -527,7 +527,6 @@ static HKEY reg_open_mscms_key(void) RegCloseKey( win9x_key ); RegCloseKey( winNT_key ); - if ( !ICM_key ) return NULL; return ICM_key; } @@ -548,15 +547,24 @@ static void check_registry(void) } res = RegQueryInfoKeyA(hkIcmKey, NULL, NULL, NULL, NULL, NULL, NULL, &dwValCount, NULL, NULL, NULL, NULL); + if (!res) + { + trace("RegQueryInfoKeyA() failed\n"); + return; + } + trace("Count of profile entries found directly in the registry: %ld\n", dwValCount); - if (dwValCount<1) return; for (i = 0; i