Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/wolfpld/tracy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/nfd
diff options
context:
space:
mode:
Diffstat (limited to 'nfd')
-rw-r--r--nfd/nfd_win.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/nfd/nfd_win.cpp b/nfd/nfd_win.cpp
index f4c5e7a7..d57065d4 100644
--- a/nfd/nfd_win.cpp
+++ b/nfd/nfd_win.cpp
@@ -366,6 +366,7 @@ nfdresult_t NFD_OpenDialog( const nfdchar_t *filterList,
const nfdchar_t *defaultPath,
nfdchar_t **outPath )
{
+ HRESULT result;
nfdresult_t nfdResult = NFD_ERROR;
// Init COM library.
@@ -383,7 +384,7 @@ nfdresult_t NFD_OpenDialog( const nfdchar_t *filterList,
}
// Create dialog
- HRESULT result = ::CoCreateInstance(::CLSID_FileOpenDialog, NULL,
+ result = ::CoCreateInstance(::CLSID_FileOpenDialog, NULL,
CLSCTX_ALL, ::IID_IFileOpenDialog,
reinterpret_cast<void**>(&fileOpenDialog) );