mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-22 14:44:34 +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,
|
||||
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) );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user