Author: tfaber
Date: Tue Jan 28 18:25:57 2014
New Revision: 61863
URL:
http://svn.reactos.org/svn/reactos?rev=61863&view=rev
Log:
[MSPAINT]
- Fix buffer overflow
Modified:
trunk/reactos/base/applications/mspaint/winproc.c
Modified: trunk/reactos/base/applications/mspaint/winproc.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/mspaint/…
==============================================================================
--- trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/mspaint/winproc.c [iso-8859-1] Tue Jan 28 18:25:57
2014
@@ -210,7 +210,7 @@
TCHAR droppedfile[MAX_PATH];
HBITMAP bmNew = NULL;
drophandle = (HDROP)wParam;
- DragQueryFile(drophandle, 0, droppedfile, sizeof(droppedfile));
+ DragQueryFile(drophandle, 0, droppedfile, SIZEOF(droppedfile));
DragFinish(drophandle);
LoadDIBFromFile(&bmNew, droppedfile, &fileTime, &fileSize,
&fileHPPM, &fileVPPM);
if (bmNew != NULL)