mirror of
https://github.com/reactos/reactos.git
synced 2025-02-21 16:04:57 +00:00
[CLIPBRD] Clipbrd program should accept the quoted file path (#638)
This commit is contained in:
parent
cf56e1cb58
commit
b2d2e3433b
2 changed files with 5 additions and 2 deletions
|
@ -409,6 +409,8 @@ static LRESULT WINAPI MainWndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lP
|
|||
|
||||
UpdateDisplayMenu();
|
||||
SetDisplayFormat(0);
|
||||
|
||||
DragAcceptFiles(hWnd, TRUE);
|
||||
break;
|
||||
}
|
||||
|
||||
|
@ -733,8 +735,8 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
|
|||
}
|
||||
|
||||
/* If the user provided a path to a clipboard data file, try to open it */
|
||||
if (lpCmdLine != NULL && *lpCmdLine)
|
||||
LoadClipboardDataFromFile(lpCmdLine);
|
||||
if (__argc >= 2)
|
||||
LoadClipboardDataFromFile(__wargv[1]);
|
||||
|
||||
while (GetMessageW(&msg, 0, 0, 0))
|
||||
{
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
#include <htmlhelp.h>
|
||||
#include <commdlg.h>
|
||||
#include <winnls.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "resources.h"
|
||||
#include "cliputils.h"
|
||||
|
|
Loading…
Reference in a new issue