ieframe: Turn several variables into static constants.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
1fc9b2e934
commit
05cf118538
|
@ -170,8 +170,8 @@ static void add_fav_to_menu(HMENU favmenu, HMENU menu, LPWSTR title, LPCWSTR url
|
||||||
|
|
||||||
static void add_favs_to_menu(HMENU favmenu, HMENU menu, LPCWSTR dir)
|
static void add_favs_to_menu(HMENU favmenu, HMENU menu, LPCWSTR dir)
|
||||||
{
|
{
|
||||||
|
static const WCHAR search[] = {'*',0};
|
||||||
WCHAR path[MAX_PATH*2];
|
WCHAR path[MAX_PATH*2];
|
||||||
const WCHAR search[] = {'*',0};
|
|
||||||
WCHAR* filename;
|
WCHAR* filename;
|
||||||
HANDLE findhandle;
|
HANDLE findhandle;
|
||||||
WIN32_FIND_DATAW finddata;
|
WIN32_FIND_DATAW finddata;
|
||||||
|
@ -202,9 +202,9 @@ static void add_favs_to_menu(HMENU favmenu, HMENU menu, LPCWSTR dir)
|
||||||
|
|
||||||
if(finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
if(finddata.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)
|
||||||
{
|
{
|
||||||
|
static const WCHAR ignore1[] = {'.','.',0};
|
||||||
|
static const WCHAR ignore2[] = {'.',0};
|
||||||
MENUITEMINFOW item;
|
MENUITEMINFOW item;
|
||||||
const WCHAR ignore1[] = {'.','.',0};
|
|
||||||
const WCHAR ignore2[] = {'.',0};
|
|
||||||
|
|
||||||
if(!lstrcmpW(filename, ignore1) || !lstrcmpW(filename, ignore2))
|
if(!lstrcmpW(filename, ignore1) || !lstrcmpW(filename, ignore2))
|
||||||
continue;
|
continue;
|
||||||
|
@ -217,9 +217,9 @@ static void add_favs_to_menu(HMENU favmenu, HMENU menu, LPCWSTR dir)
|
||||||
add_favs_to_menu(favmenu, item.hSubMenu, path);
|
add_favs_to_menu(favmenu, item.hSubMenu, path);
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
|
static const WCHAR urlext[] = {'.','u','r','l',0};
|
||||||
WCHAR* fileext;
|
WCHAR* fileext;
|
||||||
WCHAR* url = NULL;
|
WCHAR* url = NULL;
|
||||||
const WCHAR urlext[] = {'.','u','r','l',0};
|
|
||||||
|
|
||||||
if(lstrcmpiW(PathFindExtensionW(filename), urlext))
|
if(lstrcmpiW(PathFindExtensionW(filename), urlext))
|
||||||
continue;
|
continue;
|
||||||
|
@ -250,18 +250,18 @@ static void add_favs_to_menu(HMENU favmenu, HMENU menu, LPCWSTR dir)
|
||||||
|
|
||||||
static void add_tbs_to_menu(HMENU menu)
|
static void add_tbs_to_menu(HMENU menu)
|
||||||
{
|
{
|
||||||
HUSKEY toolbar_handle;
|
static const WCHAR toolbar_key[] = {'S','o','f','t','w','a','r','e','\\',
|
||||||
WCHAR toolbar_key[] = {'S','o','f','t','w','a','r','e','\\',
|
|
||||||
'M','i','c','r','o','s','o','f','t','\\',
|
'M','i','c','r','o','s','o','f','t','\\',
|
||||||
'I','n','t','e','r','n','e','t',' ',
|
'I','n','t','e','r','n','e','t',' ',
|
||||||
'E','x','p','l','o','r','e','r','\\',
|
'E','x','p','l','o','r','e','r','\\',
|
||||||
'T','o','o','l','b','a','r',0};
|
'T','o','o','l','b','a','r',0};
|
||||||
|
HUSKEY toolbar_handle;
|
||||||
|
|
||||||
if(SHRegOpenUSKeyW(toolbar_key, KEY_READ, NULL, &toolbar_handle, TRUE) == ERROR_SUCCESS)
|
if(SHRegOpenUSKeyW(toolbar_key, KEY_READ, NULL, &toolbar_handle, TRUE) == ERROR_SUCCESS)
|
||||||
{
|
{
|
||||||
HUSKEY classes_handle;
|
static const WCHAR classes_key[] = {'S','o','f','t','w','a','r','e','\\',
|
||||||
WCHAR classes_key[] = {'S','o','f','t','w','a','r','e','\\',
|
|
||||||
'C','l','a','s','s','e','s','\\','C','L','S','I','D',0};
|
'C','l','a','s','s','e','s','\\','C','L','S','I','D',0};
|
||||||
|
HUSKEY classes_handle;
|
||||||
WCHAR guid[39];
|
WCHAR guid[39];
|
||||||
DWORD value_len = ARRAY_SIZE(guid);
|
DWORD value_len = ARRAY_SIZE(guid);
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Reference in New Issue