mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 19:12:57 +00:00
[MSPAINT]
- Fix buffer overflow svn path=/trunk/; revision=61863
This commit is contained in:
parent
20cc310473
commit
29393f6441
1 changed files with 1 additions and 1 deletions
|
@ -210,7 +210,7 @@ WindowProcedure(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
|
||||||
TCHAR droppedfile[MAX_PATH];
|
TCHAR droppedfile[MAX_PATH];
|
||||||
HBITMAP bmNew = NULL;
|
HBITMAP bmNew = NULL;
|
||||||
drophandle = (HDROP)wParam;
|
drophandle = (HDROP)wParam;
|
||||||
DragQueryFile(drophandle, 0, droppedfile, sizeof(droppedfile));
|
DragQueryFile(drophandle, 0, droppedfile, SIZEOF(droppedfile));
|
||||||
DragFinish(drophandle);
|
DragFinish(drophandle);
|
||||||
LoadDIBFromFile(&bmNew, droppedfile, &fileTime, &fileSize, &fileHPPM, &fileVPPM);
|
LoadDIBFromFile(&bmNew, droppedfile, &fileTime, &fileSize, &fileHPPM, &fileVPPM);
|
||||||
if (bmNew != NULL)
|
if (bmNew != NULL)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue