From ed6cee0a1352ff6f8427e35dc886da5fdd69277c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9=20van=20Geldorp?= Date: Thu, 7 Oct 2004 19:24:26 +0000 Subject: [PATCH] Undo last change, since GetFullPathName is supposed to return the length including terminating nul char when the buffer is too small svn path=/trunk/; revision=11219 --- reactos/lib/setupapi/parser.c | 1 - 1 file changed, 1 deletion(-) diff --git a/reactos/lib/setupapi/parser.c b/reactos/lib/setupapi/parser.c index 2652b2b1580..8c760f01b75 100644 --- a/reactos/lib/setupapi/parser.c +++ b/reactos/lib/setupapi/parser.c @@ -1063,7 +1063,6 @@ HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR class, DWORD style, UINT *err if (strchrW( name, '\\' ) || strchrW( name, '/' )) { if (!(len = GetFullPathNameW( name, 0, NULL, NULL ))) return (HINF)INVALID_HANDLE_VALUE; - len++; /* Make room for terminating NUL byte */ if (!(path = HeapAlloc( GetProcessHeap(), 0, len * sizeof(WCHAR) ))) { SetLastError( ERROR_NOT_ENOUGH_MEMORY );