mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[HHCTRL.OCX] Reduce ROS diff
This commit is contained in:
parent
93dface84e
commit
42ef03381f
1 changed files with 1 additions and 14 deletions
|
@ -173,21 +173,9 @@ static inline BOOL navigation_visible(HHInfo *info)
|
||||||
/* Loads a string from the resource file */
|
/* Loads a string from the resource file */
|
||||||
#ifdef __REACTOS__
|
#ifdef __REACTOS__
|
||||||
LPWSTR HH_LoadString(DWORD dwID)
|
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
|
#else
|
||||||
static LPWSTR HH_LoadString(DWORD dwID)
|
static LPWSTR HH_LoadString(DWORD dwID)
|
||||||
|
#endif
|
||||||
{
|
{
|
||||||
LPWSTR string = NULL;
|
LPWSTR string = NULL;
|
||||||
LPCWSTR stringresource;
|
LPCWSTR stringresource;
|
||||||
|
@ -201,7 +189,6 @@ static LPWSTR HH_LoadString(DWORD dwID)
|
||||||
|
|
||||||
return string;
|
return string;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
|
static HRESULT navigate_url(HHInfo *info, LPCWSTR surl)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue