https://git.reactos.org/?p=reactos.git;a=commitdiff;h=42ef03381fbfcd1b7ef166dfe5fd939382406c4a

commit 42ef03381fbfcd1b7ef166dfe5fd939382406c4a
Author:     Thamatip Chitpong <[email protected]>
AuthorDate: Tue Mar 28 18:49:34 2023 +0700
Commit:     George BiČ™oc <[email protected]>
CommitDate: Sun Apr 16 18:53:19 2023 +0200

    [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)
 {

Reply via email to