mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
[MPLAY32] Accept paths with double quotes from command-line (#1210)
CORE-15525
This commit is contained in:
parent
01b580d876
commit
ccbc73ac93
1 changed files with 14 additions and 1 deletions
|
@ -12,6 +12,12 @@
|
|||
#define MAIN_WINDOW_MIN_WIDTH 250
|
||||
#define MAX_MCISTR 256
|
||||
|
||||
#ifdef UNICODE
|
||||
#define argv __wargv
|
||||
#else
|
||||
#define argv __argv
|
||||
#endif
|
||||
|
||||
HINSTANCE hInstance = NULL;
|
||||
HWND hTrackBar = NULL;
|
||||
HWND hToolBar = NULL;
|
||||
|
@ -1537,7 +1543,14 @@ _tWinMain(HINSTANCE hInst, HINSTANCE hPrevInst, LPTSTR lpCmdLine, INT nCmdShow)
|
|||
ShowWindow(hwnd, SW_SHOW);
|
||||
UpdateWindow(hwnd);
|
||||
|
||||
OpenMediaFile(hwnd, lpCmdLine, NULL);
|
||||
if (*lpCmdLine == _T('"'))
|
||||
{
|
||||
OpenMediaFile(hwnd, argv[1], NULL);
|
||||
}
|
||||
else
|
||||
{
|
||||
OpenMediaFile(hwnd, lpCmdLine, NULL);
|
||||
}
|
||||
|
||||
/* Message Loop */
|
||||
while (GetMessage(&msg, NULL, 0, 0))
|
||||
|
|
Loading…
Reference in a new issue