[ROSAPPS] Fix GCC8 warnings

This commit is contained in:
Victor Perevertkin 2019-11-06 11:54:24 +03:00
parent f7afca0973
commit 97d937add1
11 changed files with 53 additions and 42 deletions

View file

@ -155,10 +155,10 @@ void text_outp(char *cur_string)
while(cur_string[symbol]!=' ')
symbol++;
for(;cur_string[symbol]!='\n'; symbol++)
putchar(cur_string[symbol]);
putchar(' ');
putchar(' ');
}
int
@ -214,13 +214,16 @@ AnalyzeFile()
putchar(' ');
}
else text_outp(cur_string); // print plane text
th_outp(cur_string, THtag);
/* END of TAGs processing */
free(cur_string);
free(THtag);
else
{
text_outp(cur_string); // print plane text
}
th_outp(cur_string, THtag);
/* END of TAGs processing */
return 0;
free(cur_string);
free(THtag);
return 0;
}

View file

@ -716,7 +716,9 @@ Paste:
ASSERT(dwCompletionOffset <= dwCurrentCharOffset);
// Save not changing part (context) of completion in m_pchBuffer1
_tcsncpy(m_pchBuffer1,m_pchBuffer,dwCompletionOffset);
// FIXME: dwCompletionOffset is always 0 here
// _tcsncpy(m_pchBuffer1,m_pchBuffer,dwCompletionOffset);
m_pchBuffer1[dwCompletionOffset] = 0;
// Size of changing part

View file

@ -272,14 +272,18 @@ ConvertDDBtoDIB(PSCREENSHOT pScrSht)
cClrBits = 24;
else cClrBits = 32;
if (cClrBits != 24)
pScrSht->lpbi = (PBITMAPINFO) HeapAlloc(GetProcessHeap(),
0,
sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * (1 << cClrBits));
else
pScrSht->lpbi = (PBITMAPINFO) HeapAlloc(GetProcessHeap(),
0,
sizeof(BITMAPINFOHEADER));
if (cClrBits != 24)
{
pScrSht->lpbi = (PBITMAPINFO) HeapAlloc(GetProcessHeap(),
0,
sizeof(BITMAPINFOHEADER) + sizeof(RGBQUAD) * (1 << cClrBits));
}
else
{
pScrSht->lpbi = (PBITMAPINFO) HeapAlloc(GetProcessHeap(),
0,
sizeof(BITMAPINFOHEADER));
}
if (!pScrSht->lpbi)
{