- Updated installer graphics

- Fixed that using '!Execute [""]' opens program folder (results in no action now)
This commit is contained in:
Birunthan Mohanathas 2011-09-18 10:54:16 +00:00
parent 34d88e42e2
commit c72648d956

View File

@ -378,6 +378,8 @@ HINSTANCE ExecuteCommand(HWND Owner, LPCTSTR szCommand, int nShowCmd, LPCTSTR sz
} }
} }
if (!command.empty())
{
DWORD type = GetFileAttributes(command.c_str()); DWORD type = GetFileAttributes(command.c_str());
if (type & FILE_ATTRIBUTE_DIRECTORY && type != 0xFFFFFFFF) if (type & FILE_ATTRIBUTE_DIRECTORY && type != 0xFFFFFFFF)
{ {
@ -398,6 +400,11 @@ HINSTANCE ExecuteCommand(HWND Owner, LPCTSTR szCommand, int nShowCmd, LPCTSTR sz
ShellExecuteEx(&si); ShellExecuteEx(&si);
return si.hInstApp; return si.hInstApp;
} }
else
{
return (HINSTANCE)SE_ERR_FNF;
}
}
//void TransparentBltLS(HDC hdcDst, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, COLORREF colorTransparent) //void TransparentBltLS(HDC hdcDst, int nXDest, int nYDest, int nWidth, int nHeight, HDC hdcSrc, int nXSrc, int nYSrc, COLORREF colorTransparent)
//{ //{