Skip to content

Commit

Permalink
Adjusted project options.
Browse files Browse the repository at this point in the history
  • Loading branch information
raspopov committed Mar 5, 2017
1 parent 4a538b9 commit 4400ef7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions Polang.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@
<PreprocessorDefinitions>WIN32;_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<MinimalRebuild>false</MinimalRebuild>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand All @@ -119,6 +120,7 @@
<PreprocessorDefinitions>_WINDOWS;_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<SDLCheck>true</SDLCheck>
<MinimalRebuild>false</MinimalRebuild>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
Expand Down Expand Up @@ -148,11 +150,13 @@
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<SetChecksum>true</SetChecksum>
</Link>
<Midl>
<MkTypLibCompatible>false</MkTypLibCompatible>
Expand Down Expand Up @@ -186,11 +190,13 @@ if "%iscc%"=="" ( echo Inno Setup not found! &amp;&amp; exit /b 1 )
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<OmitFramePointers>true</OmitFramePointers>
<StringPooling>true</StringPooling>
<RuntimeTypeInfo>false</RuntimeTypeInfo>
</ClCompile>
<Link>
<SubSystem>Windows</SubSystem>
<EnableCOMDATFolding>true</EnableCOMDATFolding>
<OptimizeReferences>true</OptimizeReferences>
<SetChecksum>true</SetChecksum>
</Link>
<Midl>
<MkTypLibCompatible>false</MkTypLibCompatible>
Expand Down
4 changes: 2 additions & 2 deletions PolangDlg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ CPolangDlg::CPolangDlg(CWnd* pParent /*=NULL*/)
, m_sLangFilename ( theApp.GetProfileString( SETTINGS, LANG ) )
, m_sPoFilename ( theApp.GetProfileString( SETTINGS, PO ) )
{
m_hIcon = AfxGetApp()->LoadIcon( IDR_MAINFRAME );
m_hIcon = theApp.LoadIcon( IDR_MAINFRAME );
}

void CPolangDlg::DoDataExchange(CDataExchange* pDX)
Expand Down Expand Up @@ -200,7 +200,7 @@ void CPolangDlg::OnOK()
{
// en_US.lang + X.lang -> X.po

if ( m_sEnglishFilename.IsEmpty() || m_sLangFilename.IsEmpty() || m_sPoFilename.IsEmpty() ||
if ( m_sEnglishFilename.IsEmpty() || m_sPoFilename.IsEmpty() ||
GetFileAttributes( m_sEnglishFilename ) == INVALID_FILE_ATTRIBUTES )
{
AfxMessageBox( IDS_MSG_NO_FILE, MB_OK | MB_ICONEXCLAMATION );
Expand Down

0 comments on commit 4400ef7

Please sign in to comment.