mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[winpr,stream] Add Stream_ResetPosition
A helper function that does not require return checks, in contrast to Stream_SetPosition, which might fail.
This commit is contained in:
@@ -113,7 +113,7 @@ void wf_update_encode(wfInfo* wfi)
|
||||
SURFACE_BITS_COMMAND* cmd;
|
||||
wf_info_find_invalid_region(wfi);
|
||||
cmd = &wfi->cmd;
|
||||
Stream_SetPosition(wfi->s, 0);
|
||||
Stream_ResetPosition(wfi->s);
|
||||
wf_info_getScreenData(wfi, &width, &height, &pDataBits, &stride);
|
||||
rect.x = 0;
|
||||
rect.y = 0;
|
||||
|
||||
Reference in New Issue
Block a user