comcat: deal with -1 values
Aric Stewart
aric at codeweavers.com
Wed Jun 28 14:45:08 CDT 2006
-------------- next part --------------
>From nobody Mon Sep 17 00:00:00 2001
From: Aric Stewart <aric at yomiko.localdomain>
Date: Wed Jun 28 14:39:38 2006 -0500
Subject: [PATCH] cImplemented or cRequired of -1 means to match everyting regardless of the
implementation or catagories, same as we use for 0. So process them as if they
where set to 0.
---
dlls/comcat/information.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
09bab29f988260fa71fbb997356f543098858616
diff --git a/dlls/comcat/information.c b/dlls/comcat/information.c
index 0b84296..90d14ec 100644
--- a/dlls/comcat/information.c
+++ b/dlls/comcat/information.c
@@ -163,6 +163,11 @@ static HRESULT WINAPI COMCAT_ICatInforma
TRACE("\n");
+ if (cImplemented == (ULONG)-1)
+ cImplemented = 0;
+ if (cRequired == (ULONG)-1)
+ cRequired = 0;
+
if (iface == NULL || ppenumCLSID == NULL ||
(cImplemented && rgcatidImpl == NULL) ||
(cRequired && rgcatidReq == NULL)) return E_POINTER;
--
1.2.4
More information about the wine-patches
mailing list