diff options
Diffstat (limited to 'plugins/Db3x')
-rw-r--r-- | plugins/Db3x/database.c | 2 | ||||
-rw-r--r-- | plugins/Db3x/dbsettings.c | 2 | ||||
-rw-r--r-- | plugins/Db3x/init.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Db3x/database.c b/plugins/Db3x/database.c index 23d5e93723..66148ecffe 100644 --- a/plugins/Db3x/database.c +++ b/plugins/Db3x/database.c @@ -96,7 +96,7 @@ int LoadDatabaseModule(void) if ( hDbFile == INVALID_HANDLE_VALUE ) {
return 1;
}
- if ( !ReadFile(hDbFile,&dbHeader,sizeof(dbHeader),&dummy,NULL) ) {
+ if ( !ReadFile(hDbFile,&dbHeader,sizeof(dbHeader),&dummy,NULL)) {
CloseHandle(hDbFile);
return 1;
}
diff --git a/plugins/Db3x/dbsettings.c b/plugins/Db3x/dbsettings.c index 16bf2aa2bb..bda9b844aa 100644 --- a/plugins/Db3x/dbsettings.c +++ b/plugins/Db3x/dbsettings.c @@ -551,7 +551,7 @@ static INT_PTR WriteContactSetting(WPARAM wParam,LPARAM lParam) if(tmp.value.type!=DBVT_BYTE && tmp.value.type!=DBVT_WORD && tmp.value.type!=DBVT_DWORD && tmp.value.type!=DBVT_ASCIIZ && tmp.value.type!=DBVT_UTF8 && tmp.value.type!=DBVT_BLOB)
return 1;
- if ((!tmp.szModule) || (!tmp.szSetting) || ((tmp.value.type == DBVT_ASCIIZ || tmp.value.type == DBVT_UTF8 )&& tmp.value.pszVal == NULL) || (tmp.value.type == DBVT_BLOB && tmp.value.pbVal == NULL) )
+ if ((!tmp.szModule) || (!tmp.szSetting) || ((tmp.value.type == DBVT_ASCIIZ || tmp.value.type == DBVT_UTF8 )&& tmp.value.pszVal == NULL) || (tmp.value.type == DBVT_BLOB && tmp.value.pbVal == NULL))
return 1;
// the db format can't tolerate more than 255 bytes of space (incl. null) for settings+module name
settingNameLen=(int)strlen(tmp.szSetting);
diff --git a/plugins/Db3x/init.c b/plugins/Db3x/init.c index 51ca5baafe..2aceba5e6b 100644 --- a/plugins/Db3x/init.c +++ b/plugins/Db3x/init.c @@ -84,7 +84,7 @@ static int grokHeader( char * profile, int * error ) return 1;
}
// read the header, which can fail (for various reasons)
- if ( !ReadFile(hFile, &hdr, sizeof(struct DBHeader), &dummy, NULL) ) {
+ if ( !ReadFile(hFile, &hdr, sizeof(struct DBHeader), &dummy, NULL)) {
if ( error != NULL) *error=EGROKPRF_CANTREAD;
CloseHandle(hFile);
return 1;
|