Author: janderwald
Date: Tue Mar 3 16:39:31 2015
New Revision: 66554
URL:
http://svn.reactos.org/svn/reactos?rev=66554&view=rev
Log:
[NTOS]
- fix bug
Modified:
trunk/reactos/ntoskrnl/io/iomgr/deviface.c
Modified: trunk/reactos/ntoskrnl/io/iomgr/deviface.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/io/iomgr/deviface…
==============================================================================
--- trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/io/iomgr/deviface.c [iso-8859-1] Tue Mar 3 16:39:31 2015
@@ -1330,8 +1330,8 @@
/* Symbolic link name is \??\ACPI#PNP0501#1#{GUID}\ReferenceString */
/* Get GUID from SymbolicLinkName */
- StartPosition = wcsrchr(SymbolicLinkName->Buffer, L'{');
- EndPosition = wcsrchr(SymbolicLinkName->Buffer, L'}');
+ StartPosition = wcschr(SymbolicLinkName->Buffer, L'{');
+ EndPosition = wcschr(SymbolicLinkName->Buffer, L'}');
if (!StartPosition ||!EndPosition || StartPosition > EndPosition)
{
DPRINT1("IoSetDeviceInterfaceState() returning
STATUS_INVALID_PARAMETER_1\n");