diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-02 20:55:18 +0000 |
commit | 78c0815c4118fe24ab78cce2dc48a6232dcd824a (patch) | |
tree | 8512c50df70b8dd80c919e88ade3419207c95956 /plugins/SeenPlugin/file.c | |
parent | ce816d83a8c75808e0eb06832592bffefe4a8dc4 (diff) |
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SeenPlugin/file.c')
-rw-r--r-- | plugins/SeenPlugin/file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/SeenPlugin/file.c b/plugins/SeenPlugin/file.c index 97cd2d9c3f..cac37f8c30 100644 --- a/plugins/SeenPlugin/file.c +++ b/plugins/SeenPlugin/file.c @@ -56,9 +56,9 @@ int InitFileOutput(void) *++str=0;
/*
//we dont need this anylonger. the directory is created in filewrite
- if(!CreateDirectory(szmpath,NULL))
+ if (!CreateDirectory(szmpath,NULL))
{
- if(!(GetFileAttributes(szmpath) & FILE_ATTRIBUTE_DIRECTORY))
+ if (!(GetFileAttributes(szmpath) & FILE_ATTRIBUTE_DIRECTORY))
{
MessageBox(NULL,"Directory could not be created\nPlease choose another!","Last seen plugin",MB_OK|MB_ICONERROR);
DBWriteContactSettingByte(NULL,S_MOD,"FileOutput",0);
@@ -78,7 +78,7 @@ static void CreateDirectoryTree(char *szDir) char *pszLastBackslash,szTestDir[MAX_PATH];
lstrcpynA(szTestDir,szDir,sizeof(szTestDir));
- if((dwAttributes=GetFileAttributesA(szTestDir))!=0xffffffff && dwAttributes&FILE_ATTRIBUTE_DIRECTORY) return;
+ if ((dwAttributes=GetFileAttributesA(szTestDir))!=0xffffffff && dwAttributes&FILE_ATTRIBUTE_DIRECTORY) return;
pszLastBackslash=strrchr(szTestDir,'\\');
if(pszLastBackslash==NULL) return;
*pszLastBackslash='\0';
|