git-svn-id: svn://svn.code.sf.net/p/ditto-cp/code/trunk@359 595ec19a-5cb4-439b-94a8-42fb3063c22c
@@ -24,6 +24,11 @@ BOOL CU3StartApp::InitInstance()
{
CWinApp::InitInstance();
+ //if the device isn't available then just return, u3action will kill the process
+ CString csAvailable = getenv("U3_IS_DEVICE_AVAILABLE");
+ if(csAvailable != "true")
+ return FALSE;
+
//Load the ini file in the same dir as this is running
CString sExeName;
GetModuleFileName(NULL, sExeName.GetBuffer(_MAX_PATH),_MAX_PATH);