From 42ef03381fbfcd1b7ef166dfe5fd939382406c4a Mon Sep 17 00:00:00 2001 From: Thamatip Chitpong Date: Tue, 28 Mar 2023 18:49:34 +0700 Subject: [PATCH] [HHCTRL.OCX] Reduce ROS diff --- dll/win32/hhctrl.ocx/help.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/dll/win32/hhctrl.ocx/help.c b/dll/win32/hhctrl.ocx/help.c index 9696f0b846a..28b03223aad 100644 --- a/dll/win32/hhctrl.ocx/help.c +++ b/dll/win32/hhctrl.ocx/help.c @@ -173,21 +173,9 @@ static inline BOOL navigation_visible(HHInfo *info) /* Loads a string from the resource file */ #ifdef __REACTOS__ LPWSTR HH_LoadString(DWORD dwID) -{ - LPWSTR string = NULL; - LPCWSTR stringresource; - int iSize; - - iSize = LoadStringW(hhctrl_hinstance, dwID, (LPWSTR)&stringresource, 0); - - string = heap_alloc((iSize + 2) * sizeof(WCHAR)); /* some strings (tab text) needs double-null termination */ - memcpy(string, stringresource, iSize * sizeof(WCHAR)); - string[iSize] = UNICODE_NULL; - - return string; -} #else static LPWSTR HH_LoadString(DWORD dwID) +#endif { LPWSTR string = NULL; LPCWSTR stringresource; @@ -201,7 +189,6 @@ static LPWSTR HH_LoadString(DWORD dwID) return string; } -#endif static HRESULT navigate_url(HHInfo *info, LPCWSTR surl) {