mirror of
https://github.com/reactos/reactos.git
synced 2024-08-05 02:50:55 +00:00
[MSPAINT]
- Fix buffer overflow svn path=/trunk/; revision=61863
This commit is contained in:
parent
20cc310473
commit
29393f6441
|
@ -210,7 +210,7 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue