diff options
author | George Hazan <ghazan@miranda.im> | 2020-08-27 21:00:52 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-08-27 21:00:52 +0300 |
commit | 3c74a59033f723e6c209284cbaed97425136c627 (patch) | |
tree | ce9c1218ccf065549d99fd151102590b5ee159a5 /plugins/PluginUpdater/src | |
parent | 6d990112ad5ba4a670b71d40de7dfd9cedfd32cc (diff) |
pu_stub synced with changes in Plugin Updater
Diffstat (limited to 'plugins/PluginUpdater/src')
-rw-r--r-- | plugins/PluginUpdater/src/Utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/PluginUpdater/src/Utils.cpp b/plugins/PluginUpdater/src/Utils.cpp index 5d4b8c0311..5121ab8df3 100644 --- a/plugins/PluginUpdater/src/Utils.cpp +++ b/plugins/PluginUpdater/src/Utils.cpp @@ -445,7 +445,7 @@ int TransactPipe(int opcode, const wchar_t *p1, const wchar_t *p2) BYTE buf[1024];
DWORD l1 = lstrlen(p1), l2 = lstrlen(p2);
if (l1 > MAX_PATH || l2 > MAX_PATH)
- return 0;
+ return ERROR_BAD_ARGUMENTS;
*(DWORD *)buf = opcode;
wchar_t *dst = (wchar_t *)&buf[sizeof(DWORD)];
|