Module: wine Branch: master Commit: c2838c951274f2f5163b35aacc71482b4327b0e0 URL: http://source.winehq.org/git/wine.git/?a=commit;h=c2838c951274f2f5163b35aacc...
Author: Rob Shearman rob@codeweavers.com Date: Mon Feb 25 09:00:36 2008 +0000
wineboot: Fix the character count passed to RegEnumKeyW in start_services.
---
programs/wineboot/wineboot.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c index 54c3034..024eef3 100644 --- a/programs/wineboot/wineboot.c +++ b/programs/wineboot/wineboot.c @@ -562,7 +562,7 @@ static void start_services(void) return; }
- while (!RegEnumKeyW( hkey, index++, name, sizeof(name) )) + while (!RegEnumKeyW( hkey, index++, name, sizeof(name)/sizeof(name[0]) )) { if (RegOpenKeyW( hkey, name, &skey )) continue; size = sizeof(start);