mirror of
https://github.com/veracrypt/VeraCrypt
synced 2024-11-13 06:33:34 +01:00
Windows: fix compiler warnings
This commit is contained in:
parent
76d3bc631e
commit
d4e95293d9
@ -361,9 +361,11 @@ BOOL LoadLanguageFile ()
|
|||||||
|
|
||||||
header = headerPtr;
|
header = headerPtr;
|
||||||
if (header == NULL) return FALSE;
|
if (header == NULL) return FALSE;
|
||||||
|
header--;
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
header++;
|
||||||
if (sscanf (header, "#define %127s %d", key, &intKey) == 2)
|
if (sscanf (header, "#define %127s %d", key, &intKey) == 2)
|
||||||
{
|
{
|
||||||
WCHAR *str = GetString (key);
|
WCHAR *str = GetString (key);
|
||||||
@ -372,7 +374,7 @@ BOOL LoadLanguageFile ()
|
|||||||
AddDictionaryEntry (NULL, intKey, str);
|
AddDictionaryEntry (NULL, intKey, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
} while ((header = strchr (header, '\n') + 1) != (char *) 1);
|
} while ((header = strchr (header, '\n')) != NULL);
|
||||||
|
|
||||||
free (headerPtr);
|
free (headerPtr);
|
||||||
}
|
}
|
||||||
|
@ -128,9 +128,10 @@ char *XmlGetNodeText (char *xmlNode, char *xmlText, int xmlTextSize)
|
|||||||
if (t[0] != '<')
|
if (t[0] != '<')
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
t = strchr (t, '>') + 1;
|
t = strchr (t, '>');
|
||||||
if (t == (char *)1) return NULL;
|
if (t == NULL) return NULL;
|
||||||
|
|
||||||
|
t++;
|
||||||
e = strchr (e, '<');
|
e = strchr (e, '<');
|
||||||
if (e == NULL) return NULL;
|
if (e == NULL) return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user