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); |