changeset 2696:bc7c16800892

Android: dw_window_get_pos_size() isn't supported on Android... but zero out any passed variables for safety purposes.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 02 Nov 2021 20:17:37 +0000
parents 11aaf443d64b
children 4470089e14b3
files android/dw.cpp
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/android/dw.cpp	Tue Nov 02 20:08:29 2021 +0000
+++ b/android/dw.cpp	Tue Nov 02 20:17:37 2021 +0000
@@ -5884,6 +5884,14 @@
  */
 void API dw_window_get_pos_size(HWND handle, LONG *x, LONG *y, ULONG *width, ULONG *height)
 {
+    if(x)
+        *x = 0;
+    if(y)
+        *y = 0;
+    if(width)
+        *width = 0;
+    if(height)
+        *height = 0;
 }
 
 static jlong _dw_screen_dimensions = 0;