mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 07:54:36 +00:00
All variables must be defined before goto.
This commit is contained in:
parent
6bdfedead2
commit
9375afdbed
@ -366,6 +366,7 @@ nfdresult_t NFD_OpenDialog( const nfdchar_t *filterList,
|
|||||||
const nfdchar_t *defaultPath,
|
const nfdchar_t *defaultPath,
|
||||||
nfdchar_t **outPath )
|
nfdchar_t **outPath )
|
||||||
{
|
{
|
||||||
|
HRESULT result;
|
||||||
nfdresult_t nfdResult = NFD_ERROR;
|
nfdresult_t nfdResult = NFD_ERROR;
|
||||||
|
|
||||||
// Init COM library.
|
// Init COM library.
|
||||||
@ -383,7 +384,7 @@ nfdresult_t NFD_OpenDialog( const nfdchar_t *filterList,
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Create dialog
|
// Create dialog
|
||||||
HRESULT result = ::CoCreateInstance(::CLSID_FileOpenDialog, NULL,
|
result = ::CoCreateInstance(::CLSID_FileOpenDialog, NULL,
|
||||||
CLSCTX_ALL, ::IID_IFileOpenDialog,
|
CLSCTX_ALL, ::IID_IFileOpenDialog,
|
||||||
reinterpret_cast<void**>(&fileOpenDialog) );
|
reinterpret_cast<void**>(&fileOpenDialog) );
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user