Index: content/common/sandbox_win.cc |
diff --git a/content/common/sandbox_win.cc b/content/common/sandbox_win.cc |
index 9ac8c9f1759bd3952380a6d663c7a16232cc0eb7..651148b271ab7c182ddc680d58fe9f5322612fe6 100644 |
--- a/content/common/sandbox_win.cc |
+++ b/content/common/sandbox_win.cc |
@@ -193,8 +193,8 @@ void BlacklistAddOneDll(const wchar_t* module_name, |
DCHECK_LE(3U, (name.size() - period)); |
if (period <= 8) |
return; |
- for (int ix = 0; ix < 3; ++ix) { |
- const wchar_t suffix[] = {'~', ('1' + ix), 0}; |
+ for (wchar_t ix = '1'; ix <= '3'; ++ix) { |
+ const wchar_t suffix[] = {'~', ix, 0}; |
std::wstring alt_name = name.substr(0, 6) + suffix; |
alt_name += name.substr(period, name.size()); |
if (check_in_browser) { |