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

Unified 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.
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
« no previous file with comments | « src/plugin/Console.h ('k') | src/plugin/PluginClass.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/Plugin.cpp
===================================================================
--- a/src/plugin/Plugin.cpp
+++ b/src/plugin/Plugin.cpp
@@ -35,11 +35,11 @@
switch( fdwReason )
{
case DLL_PROCESS_ATTACH:
- TCHAR szFilename[MAX_PATH];
+ wchar_t szFilename[MAX_PATH];
GetModuleFileName(NULL, szFilename, MAX_PATH);
- _tcslwr_s(szFilename);
+ _wcslwr_s(szFilename);
- if (_tcsstr(szFilename, _T("explorer.exe")))
+ if (wcsstr(szFilename, L"explorer.exe"))
{
return FALSE;
}
« 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