Marcus Meissner : oleview: RegEnumKey gets always sizes, not -1.
Alexandre Julliard
julliard at winehq.org
Tue Oct 14 08:30:00 CDT 2008
Module: wine
Branch: master
Commit: 1b9507630821590c15708e05bd67bd1cf2a7ef38
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1b9507630821590c15708e05bd67bd1cf2a7ef38
Author: Marcus Meissner <marcus at jet.franken.de>
Date: Tue Oct 14 08:34:57 2008 +0200
oleview: RegEnumKey gets always sizes, not -1.
---
programs/oleview/tree.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/programs/oleview/tree.c b/programs/oleview/tree.c
index a5ba112..70391d7 100644
--- a/programs/oleview/tree.c
+++ b/programs/oleview/tree.c
@@ -271,7 +271,7 @@ static void AddCOMandAll(void)
{
i++;
- if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue;
@@ -300,7 +300,7 @@ static void AddCOMandAll(void)
if(RegOpenKey(hCurKey, wszImplementedCategories, &hInfo) == ERROR_SUCCESS)
{
- if(RegEnumKey(hInfo, 0, wszComp, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hInfo, 0, wszComp, sizeof(wszComp)/sizeof(wszComp[0])) != ERROR_SUCCESS) break;
RegCloseKey(hInfo);
@@ -355,7 +355,7 @@ static void AddApplicationID(void)
{
i++;
- if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue;
@@ -400,7 +400,7 @@ static void AddTypeLib(void)
{
i++;
- if(RegEnumKey(hKey, i, valParent, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hKey, i, valParent, sizeof(valParent)/sizeof(valParent[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hKey, valParent, &hCurKey) != ERROR_SUCCESS) continue;
@@ -409,7 +409,7 @@ static void AddTypeLib(void)
{
j++;
- if(RegEnumKey(hCurKey, j, valName, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hCurKey, j, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hCurKey, valName, &hInfoKey) != ERROR_SUCCESS) continue;
@@ -466,7 +466,7 @@ static void AddInterfaces(void)
{
i++;
- if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue;
@@ -511,7 +511,7 @@ static void AddComponentCategories(void)
{
i++;
- if(RegEnumKey(hKey, i, valName, -1) != ERROR_SUCCESS) break;
+ if(RegEnumKey(hKey, i, valName, sizeof(valName)/sizeof(valName[0])) != ERROR_SUCCESS) break;
if(RegOpenKey(hKey, valName, &hCurKey) != ERROR_SUCCESS) continue;
More information about the wine-cvs
mailing list