mirror of
https://github.com/reactos/reactos.git
synced 2025-07-31 05:32:21 +00:00
[ROSAPPS] Fix GCC8 warnings
This commit is contained in:
parent
f7afca0973
commit
97d937add1
11 changed files with 53 additions and 42 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue