summaryrefslogtreecommitdiff
path: root/plugins/LangMan
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/LangMan')
-rw-r--r--plugins/LangMan/langpack.c52
-rw-r--r--plugins/LangMan/options.c40
-rw-r--r--plugins/LangMan/utils.c2
3 files changed, 47 insertions, 47 deletions
diff --git a/plugins/LangMan/langpack.c b/plugins/LangMan/langpack.c
index 6ce827c71a..2c517137d7 100644
--- a/plugins/LangMan/langpack.c
+++ b/plugins/LangMan/langpack.c
@@ -54,10 +54,10 @@ static void CleanupAuthors(char *szAuthors)
char *p,*p2;
/* remove trailing dot (if any) */
p=&szAuthors[lstrlenA(szAuthors)-1];
- if(*p=='.') *p='\0';
+ if (*p=='.') *p='\0';
/* remove any extra info in parentheses, which is ok
* but makes the list very long for some packs */
- for(;;) {
+ for (;;) {
p=strchr(szAuthors,'(');
p2=strchr(szAuthors,')');
if(p==NULL || p2==NULL) {
@@ -65,7 +65,7 @@ static void CleanupAuthors(char *szAuthors)
p2=strchr(szAuthors,']');
if(p==NULL || p2==NULL) break;
}
- if(*(p-1)==' ') --p;
+ if (*(p-1)==' ') --p;
MoveMemory(p,p2+1,lstrlenA(p2+1)+1);
}
}
@@ -105,7 +105,7 @@ static void CleanupEmail(char *szAuthorEmail)
/* lower case */
CharLowerA(szAuthorEmail);
/* 'none' specified */
- if(!lstrcmpiA(szAuthorEmail,"none")) szAuthorEmail[0]='\0';
+ if (!lstrcmpiA(szAuthorEmail,"none")) szAuthorEmail[0]='\0';
}
static void CleanupLastModifiedUsing(char *szLastModifiedUsing,int nSize)
@@ -127,7 +127,7 @@ static void CleanupLastModifiedUsing(char *szLastModifiedUsing,int nSize)
p=strstr(szLastModifiedUsing," v0.");
if(p!=NULL) MoveMemory(p+1,p+2,lstrlenA(p+2)+1);
/* default if empty */
- if(!szLastModifiedUsing[0]) {
+ if (!szLastModifiedUsing[0]) {
lstrcpynA(szLastModifiedUsing,MIRANDANAME" ",nSize);
CallService(MS_SYSTEM_GETVERSIONTEXT,nSize-lstrlenA(szLastModifiedUsing),(LPARAM)szLastModifiedUsing+lstrlenA(szLastModifiedUsing));
}
@@ -190,7 +190,7 @@ static BOOL LoadPackData(LANGPACK_INFO *pack,BOOL fEnabledPacks,const char *pszF
lstrcpynA(pack->szLastModifiedUsing, pszColon+1, sizeof(pack->szLastModifiedUsing)); /* buffer safe */
else if ( !lstrcmpA(line, "Authors")) {
buf=pack->szAuthors+lstrlenA(pack->szAuthors); /* allow multiple tags */
- if((sizeof(pack->szAuthors)-lstrlenA(pack->szAuthors))>0) /* buffer safe */
+ if ((sizeof(pack->szAuthors)-lstrlenA(pack->szAuthors))>0) /* buffer safe */
mir_snprintf(buf,sizeof(pack->szAuthors)-lstrlenA(pack->szAuthors),(pack->szAuthors[0]=='\0')?"%s":" %s",pszColon+1);
} else if ( !lstrcmpA(line, "Author-email") && !pack->szAuthorEmail[0])
lstrcpynA(pack->szAuthorEmail, pszColon+1, sizeof(pack->szAuthorEmail)); /* buffer safe */
@@ -213,7 +213,7 @@ static BOOL LoadPackData(LANGPACK_INFO *pack,BOOL fEnabledPacks,const char *pszF
CleanupEmail(pack->szAuthorEmail);
CleanupLastModifiedUsing(pack->szLastModifiedUsing,sizeof(pack->szLastModifiedUsing));
/* codepage */
- if(!(pack->flags&LPF_NOLOCALE))
+ if (!(pack->flags&LPF_NOLOCALE))
if(GetLocaleInfoA(pack->Locale,LOCALE_IDEFAULTANSICODEPAGE,line,6))
pack->codepage=(WORD)atoi(line); /* CP_ACP on error */
/* language */
@@ -223,14 +223,14 @@ static BOOL LoadPackData(LANGPACK_INFO *pack,BOOL fEnabledPacks,const char *pszF
lstrcpyA(pack->szLanguage,szLanguageA); /* buffer safe */
#endif
/* ensure the pack always has a language name */
- if(!pack->szLanguage[0] && !GetLocaleInfo(pack->Locale,LOCALE_SENGLANGUAGE,pack->szLanguage,SIZEOF(pack->szLanguage))) {
+ if (!pack->szLanguage[0] && !GetLocaleInfo(pack->Locale,LOCALE_SENGLANGUAGE,pack->szLanguage,SIZEOF(pack->szLanguage))) {
TCHAR *p;
lstrcpyn(pack->szLanguage,pack->szFileName,SIZEOF(pack->szLanguage)); /* buffer safe */
p=_tcsrchr(pack->szLanguage,_T('.'));
if(p!=NULL) *p='\0';
}
/* ensure the pack always has a filelisting name */
- if(!pack->szFLName[0])
+ if (!pack->szFLName[0])
lstrcatA(lstrcpyA(pack->szFLName,szLanguageA)," Language Pack"); /* buffer safe */
fclose(fp);
return TRUE;
@@ -242,11 +242,11 @@ BOOL GetPackPath(TCHAR *pszPath,int nSize,BOOL fEnabledPacks,const TCHAR *pszFil
{
TCHAR *p;
/* main path */
- if(!GetModuleFileName(NULL,pszPath,nSize)) return FALSE;
+ if (!GetModuleFileName(NULL,pszPath,nSize)) return FALSE;
p=_tcsrchr(pszPath,_T('\\'));
if(p!=NULL) *(p+1)=_T('\0');
/* subdirectory */
- if(!fEnabledPacks) {
+ if (!fEnabledPacks) {
if(nSize<(lstrlen(pszPath)+10)) return FALSE;
lstrcat(pszPath,_T("Plugins\\Language\\"));
}
@@ -274,18 +274,18 @@ BOOL EnumPacks(ENUM_PACKS_CALLBACK callback,const TCHAR *pszFilePattern,const ch
if(hFind!=INVALID_HANDLE_VALUE) {
do {
if(wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) continue;
- if((lstrlen(wfd.cFileName)<4) || wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.')) continue;
+ if ((lstrlen(wfd.cFileName)<4) || wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.')) continue;
/* get data */
ZeroMemory(&pack,sizeof(pack));
lstrcpy(pack.szFileName,CharLower(wfd.cFileName)); /* buffer safe */
if(LoadPackData(&pack,TRUE,pszFileVersionHeader)) {
pack.ftFileDate=wfd.ftLastWriteTime;
/* enabled? */
- if(!fPackFound) pack.flags|=LPF_ENABLED;
+ if (!fPackFound) pack.flags|=LPF_ENABLED;
fPackFound=TRUE;
/* callback */
if(callback!=NULL) res=callback(&pack,wParam,lParam);
- if(!res) { FindClose(hFind); return FALSE; }
+ if (!res) { FindClose(hFind); return FALSE; }
}
} while(FindNextFile(hFind,&wfd));
FindClose(hFind);
@@ -311,9 +311,9 @@ BOOL EnumPacks(ENUM_PACKS_CALLBACK callback,const TCHAR *pszFilePattern,const ch
}
}
pack.flags=LPF_NOLOCALE|LPF_DEFAULT;
- if(!fPackFound) pack.flags|=LPF_ENABLED;
+ if (!fPackFound) pack.flags|=LPF_ENABLED;
/* callback */
- if(!callback(&pack,wParam,lParam)) return FALSE;
+ if (!callback(&pack,wParam,lParam)) return FALSE;
}
/* disabled packs */
@@ -331,7 +331,7 @@ BOOL EnumPacks(ENUM_PACKS_CALLBACK callback,const TCHAR *pszFilePattern,const ch
fPackFound=TRUE;
/* callback */
if(callback!=NULL) res=callback(&pack,wParam,lParam);
- if(!res) { FindClose(hFind); return FALSE; }
+ if (!res) { FindClose(hFind); return FALSE; }
}
} while(FindNextFile(hFind,&wfd));
FindClose(hFind);
@@ -343,14 +343,14 @@ BOOL EnumPacks(ENUM_PACKS_CALLBACK callback,const TCHAR *pszFilePattern,const ch
BOOL IsPluginIncluded(const LANGPACK_INFO *pack,char *pszFileBaseName)
{
char *p;
- if(!lstrcmpiA(pszFileBaseName,"png2dib") || !lstrcmpiA(pszFileBaseName,"loadavatars"))
+ if (!lstrcmpiA(pszFileBaseName,"png2dib") || !lstrcmpiA(pszFileBaseName,"loadavatars"))
return TRUE; /* workaround: does not need no translation */
for(p=(char*)pack->szPluginsIncluded;;) {
p=strstr(p,CharLowerA(pszFileBaseName));
if(p==NULL) return FALSE;
if(p==pack->szPluginsIncluded || *(p-1)==' ' || *(p-1)==',') {
p+=lstrlenA(pszFileBaseName)+1;
- if(*p==',' || *p==' ' || *p==0) return TRUE;
+ if (*p==',' || *p==' ' || *p==0) return TRUE;
}
else p+=lstrlenA(pszFileBaseName)+1;
}
@@ -377,7 +377,7 @@ BOOL EnablePack(const LANGPACK_INFO *pack,const TCHAR *pszFilePattern)
/* move file */
if(GetPackPath(szFrom,SIZEOF(szFrom),TRUE,wfd.cFileName))
if(GetPackPath(szDest,SIZEOF(szDest),FALSE,wfd.cFileName))
- if(!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
+ if (!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
DeleteFile(szDest);
MoveFile(szFrom,szDest);
}
@@ -403,7 +403,7 @@ void CorrectPacks(const TCHAR *pszFilePattern,BOOL fDisableAll)
WIN32_FIND_DATA wfd;
/* main path */
- if(!GetModuleFileName(NULL,szDir,SIZEOF(szDir))) return;
+ if (!GetModuleFileName(NULL,szDir,SIZEOF(szDir))) return;
pszFile=_tcsrchr(szDir,_T('\\'));
if(pszFile!=NULL) *pszFile=_T('\0');
@@ -415,12 +415,12 @@ void CorrectPacks(const TCHAR *pszFilePattern,BOOL fDisableAll)
if(wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) continue;
if(lstrlen(wfd.cFileName)<4 || wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.')) continue;
/* ensure dir exists */
- if(!fDirCreated && GetPackPath(szFrom,SIZEOF(szFrom),FALSE,NULL))
+ if (!fDirCreated && GetPackPath(szFrom,SIZEOF(szFrom),FALSE,NULL))
fDirCreated=CreateDirectory(szFrom,NULL);
/* move file */
if(GetPackPath(szDest,SIZEOF(szDest),FALSE,wfd.cFileName)) {
mir_sntprintf(szFrom,SIZEOF(szFrom),_T("%s\\Plugins\\%s"),szDir,wfd.cFileName);
- if(!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
+ if (!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
DeleteFile(szDest);
MoveFile(szFrom,szDest);
}
@@ -437,14 +437,14 @@ void CorrectPacks(const TCHAR *pszFilePattern,BOOL fDisableAll)
if(wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) continue;
if(lstrlen(wfd.cFileName)<4 || wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.')) continue;
/* skip first file */
- if(!fDisableAll) { fDisableAll=TRUE; continue; }
+ if (!fDisableAll) { fDisableAll=TRUE; continue; }
/* ensure dir exists */
- if(!fDirCreated && GetPackPath(szFrom,SIZEOF(szFrom),FALSE,NULL))
+ if (!fDirCreated && GetPackPath(szFrom,SIZEOF(szFrom),FALSE,NULL))
fDirCreated=CreateDirectory(szFrom,NULL);
/* move file */
if(GetPackPath(szFrom,SIZEOF(szFrom),TRUE,wfd.cFileName))
if(GetPackPath(szDest,SIZEOF(szDest),FALSE,wfd.cFileName)) {
- if(!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
+ if (!MoveFile(szFrom,szDest) && GetLastError()==ERROR_ALREADY_EXISTS) {
DeleteFile(szDest);
MoveFile(szFrom,szDest);
}
diff --git a/plugins/LangMan/options.c b/plugins/LangMan/options.c
index 487461a2d2..37bc03f003 100644
--- a/plugins/LangMan/options.c
+++ b/plugins/LangMan/options.c
@@ -71,10 +71,10 @@ static HIMAGELIST CreateRadioImages(COLORREF clrBk,COLORREF clrText)
if(hTheme!=NULL) {
SetRect(&rc,0,0,size.cx,size.cy);
/* unchecked */
- if(!pfnDrawThemeBackground(hTheme,hdc,BP_RADIOBUTTON,RBS_UNCHECKEDNORMAL,&rc,NULL)) {
+ if (!pfnDrawThemeBackground(hTheme,hdc,BP_RADIOBUTTON,RBS_UNCHECKEDNORMAL,&rc,NULL)) {
/* checked */
OffsetRect(&rc,size.cx,0);
- if(!pfnDrawThemeBackground(hTheme,hdc,BP_RADIOBUTTON,RBS_CHECKEDNORMAL,&rc,NULL))
+ if (!pfnDrawThemeBackground(hTheme,hdc,BP_RADIOBUTTON,RBS_CHECKEDNORMAL,&rc,NULL))
himl=ImageList_Create(size.cx,size.cy,ILC_COLOR32|ILC_MASK,3,0);
}
pfnCloseThemeData(hTheme);
@@ -157,7 +157,7 @@ static void CleanupPluginName(char *szShortName)
int len;
/* strip-off anything in brackets */
for(p=szShortName;*p!='\0';++p)
- if(*p=='(' || *p=='[') {
+ if (*p=='(' || *p=='[') {
*p='\0';
break;
}
@@ -181,7 +181,7 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox,const LANGPACK_INFO *pack
PLUGININFO *(__cdecl *MirandaPluginInfo)(DWORD);
/* enum plugins */
- if(!(pack->flags&LPF_DEFAULT) && GetModuleFileName(NULL,szDir,SIZEOF(szDir))) {
+ if (!(pack->flags&LPF_DEFAULT) && GetModuleFileName(NULL,szDir,SIZEOF(szDir))) {
p=_tcsrchr(szDir,_T('\\'));
if(p!=NULL) *p=_T('\0');
mir_sntprintf(szSearch,SIZEOF(szSearch),_T("%s\\Plugins\\*.dll"),szDir);
@@ -192,7 +192,7 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox,const LANGPACK_INFO *pack
SendMessage(hwndListBox,LB_INITSTORAGE,128,lstrlenA(pack->szPluginsIncluded)); /* speed up */
do {
if(wfd.dwFileAttributes&FILE_ATTRIBUTE_DIRECTORY) continue;
- if((lstrlen(wfd.cFileName)<4) || (wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.'))) continue;
+ if ((lstrlen(wfd.cFileName)<4) || (wfd.cFileName[lstrlen(wfd.cFileName)-4]!=_T('.'))) continue;
/* file name */
lstrcpy(szSearch,wfd.cFileName); /* buffer safe */
p=_tcsrchr(szSearch,_T('.'));
@@ -233,7 +233,7 @@ static void DisplayNotIncludedPlugins(HWND hwndListBox,const LANGPACK_INFO *pack
}
}
/* all are included? */
- if(!SendMessage(hwndListBox,LB_GETCOUNT,0,0))
+ if (!SendMessage(hwndListBox,LB_GETCOUNT,0,0))
SendMessage(hwndListBox,LB_ADDSTRING,0,(LPARAM)TranslateT("All installed plugins are included."));
}
@@ -243,12 +243,12 @@ static void DisplayPackInfo(HWND hwndDlg,const LANGPACK_INFO *pack)
SendDlgItemMessage(hwndDlg,IDC_LANGNOTINCLUDED,LB_RESETCONTENT,0,0);
DisplayNotIncludedPlugins(GetDlgItem(hwndDlg,IDC_LANGNOTINCLUDED),pack);
/* locale string */
- if(!(pack->flags&LPF_NOLOCALE)) {
+ if (!(pack->flags&LPF_NOLOCALE)) {
TCHAR szLocaleName[128];
szLocaleName[0]=_T('\0');
/* can't use LOCALE_SNAME as it is not present on pre WinVista */
- if(!GetLocaleInfo(pack->Locale,LOCALE_SISO639LANGNAME,szLocaleName,SIZEOF(szLocaleName))) { /* Win98/NT4+ */
- if(!GetLocaleInfo(pack->Locale,LOCALE_SLANGUAGE,szLocaleName,SIZEOF(szLocaleName))) /* not unique! */
+ if (!GetLocaleInfo(pack->Locale,LOCALE_SISO639LANGNAME,szLocaleName,SIZEOF(szLocaleName))) { /* Win98/NT4+ */
+ if (!GetLocaleInfo(pack->Locale,LOCALE_SLANGUAGE,szLocaleName,SIZEOF(szLocaleName))) /* not unique! */
szLocaleName[0]=_T('\0');
} else {
if(GetLocaleInfo(pack->Locale,LOCALE_SISO3166CTRYNAME,&szLocaleName[3],SIZEOF(szLocaleName)-3)) /* Win98/NT4+ */
@@ -256,7 +256,7 @@ static void DisplayPackInfo(HWND hwndDlg,const LANGPACK_INFO *pack)
}
/* add some note if its incompatible */
if(szLocaleName[0]) {
- if(!IsValidLocale(pack->Locale,LCID_INSTALLED)) {
+ if (!IsValidLocale(pack->Locale,LCID_INSTALLED)) {
TCHAR *pszIncompat;
pszIncompat=TranslateT("(incompatible)");
szLocaleName[SIZEOF(szLocaleName)-lstrlen(pszIncompat)-1]=0;
@@ -278,7 +278,7 @@ static void DisplayPackInfo(HWND hwndDlg,const LANGPACK_INFO *pack)
/* version */
SetDlgItemTextA(hwndDlg,IDC_LANGVERSION,pack->szVersion);
if(pack->szVersion[0] && pack->szFLName[0]) {
- if(!IsWindowVisible(GetDlgItem(hwndDlg,IDC_LANGVERSIONLABEL))) {
+ if (!IsWindowVisible(GetDlgItem(hwndDlg,IDC_LANGVERSIONLABEL))) {
ShowWindow(GetDlgItem(hwndDlg,IDC_LANGVERSIONLABEL),SW_SHOW);
ShowWindow(GetDlgItem(hwndDlg,IDC_LANGVERSION),SW_SHOW);
}
@@ -311,7 +311,7 @@ static void DeletePackFile(HWND hwndDlg,HWND hwndList,int iItem,LANGPACK_INFO *p
szFileName[lstrlen(szFileName)+1]=_T('\0');
sfo.pFrom=szFileName;
/* ask to delete file */
- if(!SHFileOperation(&sfo) && !sfo.fAnyOperationsAborted) {
+ if (!SHFileOperation(&sfo) && !sfo.fAnyOperationsAborted) {
LVITEM lvi;
int nCount;
lvi.iItem=iItem;
@@ -342,7 +342,7 @@ static BOOL InsertPackItemEnumProc(LANGPACK_INFO *pack,WPARAM wParam,LPARAM lPar
CopyMemory(pack2,pack,sizeof(LANGPACK_INFO));
/* country flag icon */
lvi.mask=LVIF_TEXT|LVIF_PARAM|LVIF_STATE;
- if((HIMAGELIST)lParam!=NULL) {
+ if ((HIMAGELIST)lParam!=NULL) {
HICON hIcon;
if(pack->flags&LPF_DEFAULT)
hIcon=(HICON)CallService(MS_FLAGS_CREATEMERGEDFLAGICON,CTRY_UNITED_STATES,CTRY_UNITED_KINGDOM);
@@ -350,7 +350,7 @@ static BOOL InsertPackItemEnumProc(LANGPACK_INFO *pack,WPARAM wParam,LPARAM lPar
int countryId=0xFFFF; /* Unknown */
TCHAR szBuf[6];
/* get country id from locale */
- if(!(pack->flags&LPF_NOLOCALE))
+ if (!(pack->flags&LPF_NOLOCALE))
if(GetLocaleInfo(pack->Locale,LOCALE_ICOUNTRY,szBuf,SIZEOF(szBuf)))
countryId=_ttoi(szBuf);
hIcon=(HICON)CallService(MS_FLAGS_LOADFLAGICON,countryId,0);
@@ -429,7 +429,7 @@ static INT_PTR CALLBACK LangOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARA
case M_SHOWFILECOL:
{ HWND hwndList;
hwndList=GetDlgItem(hwndDlg,IDC_LANGLIST);
- if((BOOL)lParam && ListView_GetItemCount(hwndList)>1) {
+ if ((BOOL)lParam && ListView_GetItemCount(hwndList)>1) {
LVCOLUMN lvc;
LVITEM lvi;
LANGPACK_INFO *pack;
@@ -502,7 +502,7 @@ static INT_PTR CALLBACK LangOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARA
hti.iItem=ListView_GetNextItem((HWND)wParam,-1,LVNI_SELECTED);
if(hti.iItem!=-1)
break;
- if(!ListView_GetItemRect((HWND)wParam,hti.iItem,&rc,LVIR_SELECTBOUNDS))
+ if (!ListView_GetItemRect((HWND)wParam,hti.iItem,&rc,LVIR_SELECTBOUNDS))
break;
hti.pt.x=rc.left+(rc.right-rc.left)/2;
hti.pt.y=rc.top+(rc.bottom-rc.top)/2;
@@ -517,10 +517,10 @@ static INT_PTR CALLBACK LangOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARA
lvi.iItem=hti.iItem;
lvi.iSubItem=0;
lvi.mask=LVIF_PARAM;
- if(!ListView_GetItem((HWND)wParam,&lvi)) break;
+ if (!ListView_GetItem((HWND)wParam,&lvi)) break;
pack=(LANGPACK_INFO*)lvi.lParam;
/* context menu */
- if(!(pack->flags&LPF_DEFAULT)) {
+ if (!(pack->flags&LPF_DEFAULT)) {
hContextMenu=CreatePopupMenu();
if(hContextMenu!=NULL) {
AppendMenu(hContextMenu,MF_STRING,2,TranslateT("&Remove..."));
@@ -553,7 +553,7 @@ static INT_PTR CALLBACK LangOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARA
}
case LVN_ITEMCHANGED:
{ NMLISTVIEW *nmlv=(NMLISTVIEW*)lParam;
- if(!(nmlv->uChanged&LVIF_STATE)) break;
+ if (!(nmlv->uChanged&LVIF_STATE)) break;
/* display info and check radio item */
if(nmlv->uNewState&LVIS_SELECTED && !(nmlv->uOldState&LVIS_SELECTED)) {
ListView_SetItemState(nmhdr->hwndFrom,nmlv->iItem,INDEXTOSTATEIMAGEMASK(2),LVIS_STATEIMAGEMASK);
@@ -588,7 +588,7 @@ static INT_PTR CALLBACK LangOptDlgProc(HWND hwndDlg,UINT msg,WPARAM wParam,LPARA
lvi.mask=LVIF_PARAM;
if(ListView_GetItem(nmhdr->hwndFrom,&lvi)) {
pack=(LANGPACK_INFO*)lvi.lParam;
- if(!(pack->flags&LPF_DEFAULT))
+ if (!(pack->flags&LPF_DEFAULT))
DeletePackFile(hwndDlg,nmhdr->hwndFrom,iItem,pack);
}
break;
diff --git a/plugins/LangMan/utils.c b/plugins/LangMan/utils.c
index e727df2427..c4ca4a8a6b 100644
--- a/plugins/LangMan/utils.c
+++ b/plugins/LangMan/utils.c
@@ -49,7 +49,7 @@ void ShowInfoMessage(BYTE flags,const char *pszTitle,const char *pszTextFmt,...)
msn.szInfo=(char*)szText;
msn.uTimeout=30000; /* max timeout */
msn.dwInfoFlags=flags;
- if(!CallServiceSync(MS_CLIST_SYSTRAY_NOTIFY,0,(LPARAM)&msn))
+ if (!CallServiceSync(MS_CLIST_SYSTRAY_NOTIFY,0,(LPARAM)&msn))
return; /* success */
}