mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
Fixed codeQL warnings
This commit is contained in:
@@ -112,7 +112,7 @@ static UINT gdi_ResetGraphics(RdpgfxClientContext* context,
|
||||
if (!surface)
|
||||
continue;
|
||||
|
||||
memset(surface->data, 0xFF, surface->scanline * surface->height);
|
||||
memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
|
||||
if (!surface->outputMapped)
|
||||
continue;
|
||||
|
||||
@@ -1037,7 +1037,7 @@ static UINT gdi_CreateSurface(RdpgfxClientContext* context,
|
||||
goto fail;
|
||||
}
|
||||
|
||||
memset(surface->data, 0xFF, surface->scanline * surface->height);
|
||||
memset(surface->data, 0xFF, (size_t)surface->scanline * surface->height);
|
||||
surface->outputMapped = FALSE;
|
||||
region16_init(&surface->invalidRegion);
|
||||
rc = context->SetSurfaceData(context, surface->surfaceId, (void*)surface);
|
||||
|
||||
Reference in New Issue
Block a user