[MSPAINT] Don't use SIZEOF on a pointer
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 27 Apr 2019 16:53:59 +0000 (18:53 +0200)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 20 Jul 2019 11:56:18 +0000 (13:56 +0200)
commitcdca4e903603a024d495bdc343a7f397aa7bd14f
treeaf98d2da96b0948a90da77e74f4f6a575b8b1fc2
parent2800837dc0b6783d6c4fb61db2ce6e51199d3c47
[MSPAINT] Don't use SIZEOF on a pointer

Fixes GCC 8 warning:
base/applications/mspaint/definitions.h:16:31: error: division 'sizeof (LPWSTR {aka wchar_t*}) / sizeof (WCHAR {aka wchar_t})' does not compute the number of array elements [-Werror=sizeof-pointer-div]
 #define SIZEOF(a)  (sizeof(a) / sizeof((a)[0]))
                     ~~~~~~~~~~^~~~~~~~~~~~~~~~
base/applications/mspaint/main.cpp:134:55: note: in expansion of macro 'SIZEOF'
                 lstrcpyn(pon->lpOFN->lpstrFile, Path, SIZEOF(pon->lpOFN->lpstrFile));
                                                       ^~~~~~
base/applications/mspaint/main.cpp