Rémi Bernon : user32: Remove unused heap_strdupW helper.

Alexandre Julliard julliard at winehq.org
Mon Apr 19 15:38:10 CDT 2021


Module: wine
Branch: master
Commit: 63291b1593f70e1049c6de97758179804ecdb37f
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=63291b1593f70e1049c6de97758179804ecdb37f

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Mon Apr 19 10:22:40 2021 +0200

user32: Remove unused heap_strdupW helper.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/user32/user_private.h | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/dlls/user32/user_private.h b/dlls/user32/user_private.h
index dfd52421e66..5f8059a12a0 100644
--- a/dlls/user32/user_private.h
+++ b/dlls/user32/user_private.h
@@ -381,14 +381,4 @@ struct png_funcs
 #define assert(expr) ((void)0)
 #endif
 
-static inline WCHAR *heap_strdupW(const WCHAR *src)
-{
-    WCHAR *dst;
-    unsigned len;
-    if (!src) return NULL;
-    len = (lstrlenW(src) + 1) * sizeof(WCHAR);
-    if ((dst = heap_alloc(len))) memcpy(dst, src, len);
-    return dst;
-}
-
 #endif /* __WINE_USER_PRIVATE_H */




More information about the wine-cvs mailing list