- Fix a bug (% is a reserved character in string operations).

svn path=/trunk/; revision=31802
This commit is contained in:
Aleksey Bragin 2008-01-14 17:26:46 +00:00
parent 9b168c7e2d
commit 415e9cecc1

View file

@ -1279,7 +1279,7 @@ ScmCanonDriverImagePath(DWORD dwStartType,
/* Check if it has %SystemRoot% (len=13) */
if (ServiceNameLen > 13 &&
!wcsnicmp(L"%SystemRoot%\\", lpServiceName, 13))
!wcsnicmp(L"%%SystemRoot%%\\", lpServiceName, 13))
{
/* Substitute %SystemRoot% with \\SystemRoot\\ */
*lpCanonName = LocalAlloc(LMEM_ZEROINIT, ServiceNameLen * sizeof(WCHAR) + sizeof(WCHAR));