Browse Source

Fix a warning under Windows

Signed-off-by: falkTX <falktx@gmail.com>
tags/v2.1-alpha1-winvst
parent
commit
7211e79339
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp

+ 2
- 1
source/modules/juce_gui_basics/native/juce_win32_FileChooser.cpp View File

@@ -85,7 +85,8 @@ namespace FileChooserHelpers
if (FilePreviewComponent* comp = dynamic_cast<FilePreviewComponent*> (info->customComponent->getChildComponent(0)))
{
WCHAR path [MAX_PATH * 2] = { 0 };
CommDlg_OpenSave_GetFilePath (GetParent (hdlg), (LPARAM) &path, MAX_PATH);
if (CommDlg_OpenSave_GetFilePath (GetParent (hdlg), (LPARAM) &path, MAX_PATH) < 0)
return 0;
comp->selectedFileChanged (File (path));
}


Loading…
Cancel
Save