mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[SETUPAPI]
Sync SetupCreateDiskSpaceListW with Wine head. Fixes remaining setupapi:diskspace test failures. svn path=/trunk/; revision=56641
This commit is contained in:
parent
9b166cb4b1
commit
4425d5011a
1 changed files with 10 additions and 2 deletions
|
@ -35,7 +35,7 @@ typedef struct {
|
|||
|
||||
|
||||
/***********************************************************************
|
||||
* SetupCreateDiskSpaceListW (SETUPAPI.@)
|
||||
* SetupCreateDiskSpaceListW (SETUPAPI.@)
|
||||
*/
|
||||
HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT Flags)
|
||||
{
|
||||
|
@ -44,6 +44,14 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
|
|||
WCHAR *ptr;
|
||||
LPDISKSPACELIST list=NULL;
|
||||
|
||||
TRACE("(%p, %u, 0x%08x)\n", Reserved1, Reserved2, Flags);
|
||||
|
||||
if (Reserved1 || Reserved2 || Flags & ~SPDSL_IGNORE_DISK)
|
||||
{
|
||||
SetLastError(ERROR_INVALID_PARAMETER);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
rc = GetLogicalDriveStringsW(255,drives);
|
||||
|
||||
if (rc == 0)
|
||||
|
@ -73,7 +81,7 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
|
|||
}
|
||||
ptr += lstrlenW(ptr) + 1;
|
||||
}
|
||||
return (HANDLE)list;
|
||||
return list;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue