mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 11:01:57 +08:00
check name for shared surface
This commit is contained in:
@@ -781,10 +781,10 @@ static int get_shared_surface (int cli, int clifd, void* buff, size_t len)
|
||||
SHAREDSURFINFO info;
|
||||
|
||||
assert (__gal_fake_screen);
|
||||
assert (strcmp (buff, SYSSF_WALLPAPER_PATTER) == 0);
|
||||
|
||||
info.flags = __gal_fake_screen->flags;
|
||||
if (__gal_fake_screen->shared_header) {
|
||||
if (strcmp (buff, SYSSF_WALLPAPER_PATTER) == 0 &&
|
||||
__gal_fake_screen->shared_header) {
|
||||
info.size = __gal_fake_screen->shared_header->pixels_size;
|
||||
info.size += __gal_fake_screen->shared_header->pixels_off;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user