- mingw based compiling seems to work again with this fix

This commit is contained in:
Mark Vejvoda 2011-04-05 07:32:36 +00:00
parent eaf10434b0
commit 22328e0666
1 changed files with 2 additions and 2 deletions

View File

@ -356,14 +356,14 @@ MainWindow::MainWindow( std::pair<string,vector<string> > unitToLoad,
//timer->Start(100);
// For windows register g3d file extension to launch this app
#ifdef WIN32
#if defined(WIN32) && !defined(__MINGW32__)
// example from: http://stackoverflow.com/questions/1387769/create-registry-entry-to-associate-file-extension-with-application-in-c
//[HKEY_CURRENT_USER\Software\Classes\blergcorp.blergapp.v1\shell\open\command]
//@="c:\path\to\app.exe \"%1\""
//[HKEY_CURRENT_USER\Software\Classes\.blerg]
//@="blergcorp.blergapp.v1"
//Open the registry key.
//Open the registry key.
string subKey = "Software\\Classes\\megaglest.g3d\\shell\\open\\command";
HKEY keyHandle;
DWORD dwDisposition;