Author: tretiakov
Date: Sat Jun 24 14:37:55 2006
New Revision: 22553
URL:
http://svn.reactos.org/svn/reactos?rev=22553&view=rev
Log:
Oops :) forget sizeof(WCHAR)
Modified:
trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
Modified: trunk/reactos/base/services/umpnpmgr/umpnpmgr.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/services/umpnpmgr/ump…
==============================================================================
--- trunk/reactos/base/services/umpnpmgr/umpnpmgr.c (original)
+++ trunk/reactos/base/services/umpnpmgr/umpnpmgr.c Sat Jun 24 14:37:55 2006
@@ -832,7 +832,7 @@
lstrcpyW(szKeyName, L"System\\CurrentControlSet\\Control\\Class");
lstrcatW(szKeyName, L"\\");
- if(lstrlenW(ClassGuid) < sizeof(szKeyName)-lstrlenW(szKeyName))
+ if(lstrlenW(ClassGuid) < sizeof(szKeyName)/sizeof(WCHAR)-lstrlenW(szKeyName))
lstrcatW(szKeyName, ClassGuid);
else return CR_INVALID_DATA;