From: Alex Henrie alexhenrie24@gmail.com
--- dlls/newdev/main.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/dlls/newdev/main.c b/dlls/newdev/main.c index 54f572c3d08..dcf7e391d4d 100644 --- a/dlls/newdev/main.c +++ b/dlls/newdev/main.c @@ -30,7 +30,6 @@ #include "newdev.h"
#include "wine/debug.h" -#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(setupapi);
@@ -118,7 +117,7 @@ BOOL WINAPI UpdateDriverForPlugAndPlayDevicesW(HWND parent, const WCHAR *hardwar { if (GetLastError() != ERROR_INSUFFICIENT_BUFFER) continue; - device_ids = heap_realloc(device_ids, size); + device_ids = realloc(device_ids, size); SetupDiGetDeviceRegistryPropertyW(set, &device, SPDRP_HARDWAREID, NULL, (BYTE *)device_ids, size, NULL); }
@@ -144,7 +143,7 @@ BOOL WINAPI UpdateDriverForPlugAndPlayDevicesW(HWND parent, const WCHAR *hardwar }
SetupDiDestroyDeviceInfoList(set); - heap_free(device_ids); + free(device_ids); return TRUE; }