mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 12:23:31 +00:00
[MSPAINT]
- Fix buffer overflow svn path=/trunk/; revision=61863
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user