summaryrefslogtreecommitdiff
path: root/protocols/Omegle/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Omegle/src/utils.cpp')
-rw-r--r--protocols/Omegle/src/utils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Omegle/src/utils.cpp b/protocols/Omegle/src/utils.cpp
index 8e804585d5..86db3feec1 100644
--- a/protocols/Omegle/src/utils.cpp
+++ b/protocols/Omegle/src/utils.cpp
@@ -120,7 +120,7 @@ std::string utils::text::trim(const std::string &data )
int utils::debug::log(const std::string &file_name, const std::string &text)
{
char szFile[MAX_PATH];
- GetModuleFileNameA(g_hInstance, szFile, SIZEOF(szFile));
+ GetModuleFileNameA(g_hInstance, szFile, _countof(szFile));
std::string path = szFile;
path = path.substr( 0, path.rfind( "\\" ));
path = path.substr( 0, path.rfind( "\\" ) + 1 );