mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-30 19:26:05 +00:00
- Fix a bug (% is a reserved character in string operations).
svn path=/trunk/; revision=31802
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user