diff options
author | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-02-25 20:54:17 +0000 |
---|---|---|
committer | Vadim Dashevskiy <watcherhd@gmail.com> | 2013-02-25 20:54:17 +0000 |
commit | e2722e2ccb5459c59d4b801db9de2b92c673621a (patch) | |
tree | 1ccc8b9816156a2e293bd8fb7b030e468c341c57 /plugins/PluginUpdater/pu_stub/pu_stub.cpp | |
parent | 7a16305594ab2c308db9aa615280197497ecd2b6 (diff) |
- VC6 compatibility
git-svn-id: http://svn.miranda-ng.org/main/trunk@3771 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/pu_stub/pu_stub.cpp')
-rw-r--r-- | plugins/PluginUpdater/pu_stub/pu_stub.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/pu_stub/pu_stub.cpp b/plugins/PluginUpdater/pu_stub/pu_stub.cpp index ef9d7f0352..3ac358d4d4 100644 --- a/plugins/PluginUpdater/pu_stub/pu_stub.cpp +++ b/plugins/PluginUpdater/pu_stub/pu_stub.cpp @@ -65,7 +65,11 @@ int APIENTRY _tWinMain(HINSTANCE hInstance, HINSTANCE, LPTSTR lpCmdLine, int) hInst = hInstance;
TCHAR tszPipeName[MAX_PATH];
- _stprintf_s(tszPipeName, MAX_PATH, _T("\\\\.\\pipe\\Miranda_Pu_%s"), lpCmdLine);
+ #ifdef _MSC_VER < 1400
+ _stprintf(tszPipeName, _T("\\\\.\\pipe\\Miranda_Pu_%s"), lpCmdLine);
+ #else
+ stprintf_s(tszPipeName, MAX_PATH, _T("\\\\.\\pipe\\Miranda_Pu_%s"), lpCmdLine);
+ #endif
log( L"Opening pipe %s...", tszPipeName);
HANDLE hPipe = CreateFile(tszPipeName, GENERIC_READ | GENERIC_WRITE, 0, NULL, OPEN_EXISTING, 0, NULL);
if (hPipe == INVALID_HANDLE_VALUE) {
|