mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] updatesvc: utils small refactoring
This commit is contained in:
@ -576,7 +576,7 @@ namespace NS_File
|
|||||||
wstring tempPath()
|
wstring tempPath()
|
||||||
{
|
{
|
||||||
if (NS_Utils::isRunAsApp()) {
|
if (NS_Utils::isRunAsApp()) {
|
||||||
WCHAR buff[MAX_PATH + 1] = {0};
|
WCHAR buff[MAX_PATH + 2] = {0};
|
||||||
DWORD res = ::GetTempPath(MAX_PATH + 1, buff);
|
DWORD res = ::GetTempPath(MAX_PATH + 1, buff);
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
buff[res - 1] = '\0';
|
buff[res - 1] = '\0';
|
||||||
|
|||||||
Reference in New Issue
Block a user