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

Side by Side Diff: src/plugin/Plugin.cpp

Issue 5516878722105344: Issue #276 - replace TCHAR etc. with wide-character versions (Closed)
Patch Set: Created Aug. 5, 2014, 3:17 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/plugin/Console.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include "Plugin.h" 3 #include "Plugin.h"
4 #ifdef _WIN64 4 #ifdef _WIN64
5 #include "../../build/x64/AdblockPlus_i.c" 5 #include "../../build/x64/AdblockPlus_i.c"
6 #else 6 #else
7 #include "../../build/ia32/AdblockPlus_i.c" 7 #include "../../build/ia32/AdblockPlus_i.c"
8 #endif 8 #endif
9 9
10 #include "PluginClass.h" 10 #include "PluginClass.h"
(...skipping 17 matching lines...) Expand all
28 BEGIN_OBJECT_MAP(ObjectMap) 28 BEGIN_OBJECT_MAP(ObjectMap)
29 OBJECT_ENTRY(CLSID_PluginClass, CPluginClass) 29 OBJECT_ENTRY(CLSID_PluginClass, CPluginClass)
30 END_OBJECT_MAP() 30 END_OBJECT_MAP()
31 31
32 //Dll Entry Point 32 //Dll Entry Point
33 BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID reserved) 33 BOOL WINAPI DllMain(HINSTANCE hInstDll, DWORD fdwReason, LPVOID reserved)
34 { 34 {
35 switch( fdwReason ) 35 switch( fdwReason )
36 { 36 {
37 case DLL_PROCESS_ATTACH: 37 case DLL_PROCESS_ATTACH:
38 TCHAR szFilename[MAX_PATH]; 38 wchar_t szFilename[MAX_PATH];
39 GetModuleFileName(NULL, szFilename, MAX_PATH); 39 GetModuleFileName(NULL, szFilename, MAX_PATH);
40 _tcslwr_s(szFilename); 40 _wcslwr_s(szFilename);
41 41
42 if (_tcsstr(szFilename, _T("explorer.exe"))) 42 if (wcsstr(szFilename, L"explorer.exe"))
43 { 43 {
44 return FALSE; 44 return FALSE;
45 } 45 }
46 46
47 _Module.Init(ObjectMap, _Module.GetModuleInstance(), &LIBID_PluginLib); 47 _Module.Init(ObjectMap, _Module.GetModuleInstance(), &LIBID_PluginLib);
48 break; 48 break;
49 49
50 case DLL_THREAD_ATTACH: 50 case DLL_THREAD_ATTACH:
51 // thread-specific initialization. 51 // thread-specific initialization.
52 break; 52 break;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 EXTERN_C void STDAPICALLTYPE OnInstall(MSIHANDLE hInstall, MSIHANDLE tmp) 131 EXTERN_C void STDAPICALLTYPE OnInstall(MSIHANDLE hInstall, MSIHANDLE tmp)
132 { 132 {
133 InitPlugin(true); 133 InitPlugin(true);
134 } 134 }
135 135
136 // Called from updater 136 // Called from updater
137 EXTERN_C void STDAPICALLTYPE OnUpdate(void) 137 EXTERN_C void STDAPICALLTYPE OnUpdate(void)
138 { 138 {
139 InitPlugin(false); 139 InitPlugin(false);
140 } 140 }
OLDNEW
« no previous file with comments | « src/plugin/Console.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld