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:
Alex Henrie 2018-11-30 00:14:06 -07:00 committed by Alexandre Julliard
parent 1fc9b2e934
commit 05cf118538
1 changed files with 11 additions and 11 deletions

View File

@ -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)
{ {
static const WCHAR toolbar_key[] = {'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\',
'I','n','t','e','r','n','e','t',' ',
'E','x','p','l','o','r','e','r','\\',
'T','o','o','l','b','a','r',0};
HUSKEY toolbar_handle; HUSKEY toolbar_handle;
WCHAR toolbar_key[] = {'S','o','f','t','w','a','r','e','\\',
'M','i','c','r','o','s','o','f','t','\\',
'I','n','t','e','r','n','e','t',' ',
'E','x','p','l','o','r','e','r','\\',
'T','o','o','l','b','a','r',0};
if(SHRegOpenUSKeyW(toolbar_key, KEY_READ, NULL, &toolbar_handle, TRUE) == ERROR_SUCCESS) if(SHRegOpenUSKeyW(toolbar_key, KEY_READ, NULL, &toolbar_handle, TRUE) == ERROR_SUCCESS)
{ {
static const WCHAR classes_key[] = {'S','o','f','t','w','a','r','e','\\',
'C','l','a','s','s','e','s','\\','C','L','S','I','D',0};
HUSKEY classes_handle; HUSKEY classes_handle;
WCHAR classes_key[] = {'S','o','f','t','w','a','r','e','\\',
'C','l','a','s','s','e','s','\\','C','L','S','I','D',0};
WCHAR guid[39]; WCHAR guid[39];
DWORD value_len = ARRAY_SIZE(guid); DWORD value_len = ARRAY_SIZE(guid);
int i; int i;