From 41a7300678e4bb3cd703e2c236e57af4a31962c7 Mon Sep 17 00:00:00 2001 From: Rozhuk Ivan Date: Mon, 1 Dec 2014 04:50:22 +0000 Subject: mir_snprintf(..., sizeof() -> SIZEOF(), ...) small fixs cleanups git-svn-id: http://svn.miranda-ng.org/main/trunk@11188 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/RemovePersonalSettings/src/rps.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'plugins/RemovePersonalSettings') diff --git a/plugins/RemovePersonalSettings/src/rps.cpp b/plugins/RemovePersonalSettings/src/rps.cpp index 4fa819f0b2..c28ab865a9 100644 --- a/plugins/RemovePersonalSettings/src/rps.cpp +++ b/plugins/RemovePersonalSettings/src/rps.cpp @@ -310,7 +310,7 @@ void RemoveProtocolSettings(const char * protocolName) // Delete it if (name[0] != '\0') { - mir_snprintf(moduleName, sizeof(moduleName), "%s%s", protocolName, name); + mir_snprintf(moduleName, SIZEOF(moduleName), "%s%s", protocolName, name); DeleteSettingEx(moduleName, NULL); } @@ -451,7 +451,7 @@ void RemoveDirectories() if (accounts[i]->szModuleName == NULL || accounts[i]->szModuleName[0] == '\0') continue; - mir_snprintf(dir, sizeof(dir), "%s%s", gMirandaDir, accounts[i]->szModuleName); + mir_snprintf(dir, SIZEOF(dir), "%s%s", gMirandaDir, accounts[i]->szModuleName); DeleteFileOrFolder(dir); } } @@ -475,7 +475,7 @@ void RemoveDirectories() // Delete it if (name[0] != '\0') { - mir_snprintf(dir, sizeof(dir), "%s%s", gMirandaDir, name); + mir_snprintf(dir, SIZEOF(dir), "%s%s", gMirandaDir, name); DeleteFileOrFolder(dir); } @@ -587,14 +587,14 @@ void DeleteFileOrFolder(const char *name) HANDLE hwnd; char tmp[MAX_PATH]; - mir_snprintf(tmp, sizeof(tmp), "%s\\*.*", name); + mir_snprintf(tmp, SIZEOF(tmp), "%s\\*.*", name); // Delete files hwnd = FindFirstFile(tmp, &findData); if (hwnd != INVALID_HANDLE_VALUE) { do { if (strcmp(findData.cFileName, ".") && strcmp(findData.cFileName, "..")) { - mir_snprintf(tmp, sizeof(tmp), "%s\\%s", name, findData.cFileName); + mir_snprintf(tmp, SIZEOF(tmp), "%s\\%s", name, findData.cFileName); DeleteFileOrFolder(tmp); } } -- cgit v1.2.3