diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-04 05:25:37 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2012-12-04 05:25:37 +0000 |
commit | 683ffe511660bd92f67117076c3c63f1bf3c3ff0 (patch) | |
tree | e57e2b65e7d01d05b957d49f2f5e78bea209dcaf /plugins/AssocMgr/src/reg.cpp | |
parent | 1e286906b0d8ea5d633721dff7093a6f6a154f11 (diff) |
Translation fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@2633 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AssocMgr/src/reg.cpp')
-rw-r--r-- | plugins/AssocMgr/src/reg.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/AssocMgr/src/reg.cpp b/plugins/AssocMgr/src/reg.cpp index 92451a52d3..042b0da119 100644 --- a/plugins/AssocMgr/src/reg.cpp +++ b/plugins/AssocMgr/src/reg.cpp @@ -24,16 +24,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #ifdef _DEBUG
/* Debug: Ensure all registry calls do succeed and have valid parameters.
* Shows a details message box otherwise. */
-static __inline LONG regchk(LONG res,const char *pszFunc,const void *pszInfo,BOOL fInfoUnicode,const char *pszFile,unsigned int nLine)
+static __inline LONG regchk(LONG res, const char *pszFunc, const void *pszInfo, BOOL fInfoUnicode, const char *pszFile, unsigned int nLine)
{
- if(res!=ERROR_SUCCESS && res!=ERROR_FILE_NOT_FOUND && res!=ERROR_NO_MORE_ITEMS) {
- TCHAR szMsg[1024],*pszInfo2;
+ if(res != ERROR_SUCCESS && res != ERROR_FILE_NOT_FOUND && res != ERROR_NO_MORE_ITEMS) {
+ TCHAR szMsg[1024], *pszInfo2;
char *pszErr;
- pszErr=GetWinErrorDescription(res);
- pszInfo2=s2t(pszInfo,fInfoUnicode,FALSE); /* does NULL check */
- mir_sntprintf(szMsg,SIZEOF(szMsg),_T("Access failed:\n%.64hs(%.128s)\n%.250hs(%u)\n%.256hs (%u)"),pszFunc,pszInfo2,pszFile,nLine,pszErr,res);
- MessageBox(NULL,szMsg,_T("Registry Warning"),MB_OK|MB_ICONINFORMATION|MB_SETFOREGROUND|MB_TOPMOST|MB_TASKMODAL);
- if(pszErr!=NULL) LocalFree(pszErr);
+ pszErr = GetWinErrorDescription(res);
+ pszInfo2 = s2t(pszInfo, fInfoUnicode, FALSE); /* does NULL check */
+ mir_sntprintf(szMsg, SIZEOF(szMsg), TranslateT("Access failed:\n%.64hs(%.128s)\n%.250hs(%u)\n%.256hs (%u)"), pszFunc, pszInfo2, pszFile, nLine, pszErr, res);
+ MessageBox(NULL, szMsg, TranslateT("Registry Warning"), MB_OK | MB_ICONINFORMATION | MB_SETFOREGROUND | MB_TOPMOST | MB_TASKMODAL);
+ if(pszErr != NULL) LocalFree(pszErr);
mir_free(pszInfo2); /* does NULL check */
}
return res;
|