Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/engine/Main.cpp

Issue 11756012: Enhanced Protected Mode support (Closed)
Patch Set: Created Sept. 15, 2013, 1 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/engine/Main.cpp
===================================================================
--- a/src/engine/Main.cpp
+++ b/src/engine/Main.cpp
@@ -13,7 +13,6 @@
#include "Updater.h"
-
namespace
{
std::auto_ptr<AdblockPlus::FilterEngine> filterEngine;
@@ -385,6 +384,8 @@
return filterEngine;
}
Felix Dahlke 2013/09/16 16:30:12 Why this extra whitespace?
+
+
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
AutoHandle mutex(CreateMutexW(0, false, L"AdblockPlusEngine"));
@@ -403,6 +404,7 @@
int argc;
LPWSTR* argv = CommandLineToArgvW(GetCommandLineW(), &argc);
std::wstring locale(argc >= 2 ? argv[1] : L"");
+ Communication::browserSID = argv[2];
Wladimir Palant 2013/09/16 13:45:07 This will cause a crash if too few parameters are
Felix Dahlke 2013/09/16 16:30:12 What if argc is <3?
Oleksandr 2013/09/17 03:11:37 <3. Teehee :)
LocalFree(argv);
Dictionary::Create(locale);
filterEngine = CreateFilterEngine(locale);

Powered by Google App Engine
This is Rietveld