mirror of
https://github.com/reactos/reactos.git
synced 2024-09-28 05:26:58 +00:00
- Fix a bug (% is a reserved character in string operations).
svn path=/trunk/; revision=31802
This commit is contained in:
parent
9b168c7e2d
commit
415e9cecc1
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue