mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
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
This commit is contained in:
parent
e961e71fec
commit
ed6cee0a13
1 changed files with 0 additions and 1 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue