kernel32: Fix a typo in the leadin check in WaitNamedPipeW.

This commit is contained in:
Rob Shearman 2008-08-17 18:34:09 +01:00 committed by Alexandre Julliard
parent 23bb94c005
commit e1e6caf81c
1 changed files with 1 additions and 1 deletions

View File

@ -1342,7 +1342,7 @@ BOOL WINAPI WaitNamedPipeW (LPCWSTR name, DWORD nTimeOut)
if (nt_name.Length >= MAX_PATH * sizeof(WCHAR) ||
nt_name.Length < sizeof(leadin) ||
strncmpiW( nt_name.Buffer, leadin, sizeof(leadin)/sizeof(WCHAR) != 0))
strncmpiW( nt_name.Buffer, leadin, sizeof(leadin)/sizeof(WCHAR)) != 0)
{
RtlFreeUnicodeString( &nt_name );
SetLastError( ERROR_PATH_NOT_FOUND );