Commit 02d1154b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

setupapi: Remove some superfluous casts.

parent e8992418
......@@ -561,8 +561,8 @@ static BOOL SETUPDI_AddDeviceToSet(struct DeviceInfoSet *set,
devInst->data.DevInst = devInfo->devId;
devInst->data.Reserved = (ULONG_PTR)devInfo;
SETUPDI_GuidToString(guid, classGuidStr);
SetupDiSetDeviceRegistryPropertyW((HDEVINFO)set,
&devInst->data, SPDRP_CLASSGUID, (const BYTE *)classGuidStr,
SetupDiSetDeviceRegistryPropertyW(set, &devInst->data,
SPDRP_CLASSGUID, (const BYTE *)classGuidStr,
lstrlenW(classGuidStr) * sizeof(WCHAR));
if (dev) *dev = &devInst->data;
ret = TRUE;
......@@ -1190,7 +1190,7 @@ SetupDiCreateDeviceInfoListExW(const GUID *ClassGuid,
list->cDevices = 0;
list_init(&list->devices);
return (HDEVINFO)list;
return list;
}
/***********************************************************************
......
......@@ -82,7 +82,7 @@ HDSKSPC WINAPI SetupCreateDiskSpaceListW(PVOID Reserved1, DWORD Reserved2, UINT
}
ptr += lstrlenW(ptr) + 1;
}
return (HANDLE)list;
return list;
}
......
......@@ -727,7 +727,7 @@ DWORD WINAPI TakeOwnershipOfFile(LPCWSTR lpFileName)
goto fail;
}
pOwner = (PTOKEN_OWNER)MyMalloc(dwSize);
pOwner = MyMalloc(dwSize);
if (pOwner == NULL)
{
CloseHandle(hToken);
......
......@@ -1158,7 +1158,7 @@ HINF WINAPI SetupOpenInfFileW( PCWSTR name, PCWSTR class, DWORD style, UINT *err
TRACE( "%s -> %p\n", debugstr_w(path), file );
file->filename = path;
SetLastError( 0 );
return (HINF)file;
return file;
}
......
......@@ -1091,7 +1091,7 @@ static void testRegisterAndGetDetail(void)
"\\\\?\\root#legacy_bogus#0000#{6a55b5a4-3f65-11db-b704-0011955c2bdb}\\";
PSP_DEVICE_INTERFACE_DETAIL_DATA_A detail = NULL;
detail = (PSP_DEVICE_INTERFACE_DETAIL_DATA_A)HeapAlloc(GetProcessHeap(), 0, dwSize);
detail = HeapAlloc(GetProcessHeap(), 0, dwSize);
if (detail)
{
detail->cbSize = FIELD_OFFSET(SP_DEVICE_INTERFACE_DETAIL_DATA_A, DevicePath) + sizeof(char);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment