diff options
author | Kissaki <kissaki@gmx.de> | 2013-11-26 21:51:56 +0400 |
---|---|---|
committer | Kissaki <kissaki@gmx.de> | 2013-11-26 21:51:56 +0400 |
commit | 80a9350309406059a6248936ee61f3f7593b18b7 (patch) | |
tree | d873672369d733849ad7ccd0adc3886bda115118 /overlay | |
parent | cd4e8350a5d2b128197804e02d7c711d11b6e72a (diff) |
Overlay: Code improvements
* Use ARRAY_NUM_ELEMENTS(array) instead of constant
Diffstat (limited to 'overlay')
-rw-r--r-- | overlay/lib.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/overlay/lib.cpp b/overlay/lib.cpp index 1a53b3297..039809f34 100644 --- a/overlay/lib.cpp +++ b/overlay/lib.cpp @@ -752,7 +752,7 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE, DWORD fdwReason, LPVOID) { GetModuleFileNameA(NULL, procname, ARRAY_NUM_ELEMENTS(procname)); // Fix for windows XP; on length nSize does not include null-termination // @see http://msdn.microsoft.com/en-us/library/windows/desktop/ms683197%28v=vs.85%29.aspx - procname[PROCNAMEFILEPATH_BUFLEN - 1] = '\0'; + procname[ARRAY_NUM_ELEMENTS(procname) - 1] = '\0'; switch (fdwReason) { case DLL_PROCESS_ATTACH: |