Module: wine Branch: master Commit: b47a3305ad3c377c871c647281bd6c25b345927c URL: https://gitlab.winehq.org/wine/wine/-/commit/b47a3305ad3c377c871c647281bd6c2...
Author: Alex Henrie alexhenrie24@gmail.com Date: Wed Aug 16 21:47:16 2023 -0600
newdev: Use CRT allocation functions.
---
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; }