[io-layer] Fixed error condition in _wapi_handle_struct_size.
authorAlexis Christoforides <alexis@thenull.net>
Thu, 15 May 2014 17:22:02 +0000 (13:22 -0400)
committerAlexis Christoforides <alexis@thenull.net>
Thu, 15 May 2014 17:27:22 +0000 (13:27 -0400)
mono/io-layer/handles.c

index a0167d4ed02cf2d53f6f775249c3299f808f8a1c..f3a5dbfc1cbccbf70cf79e6b31f8f7c35e5c8ca2 100644 (file)
@@ -344,7 +344,7 @@ static size_t _wapi_handle_struct_size (WapiHandleType type)
                        break;
 
                default:
-                       type_size = 0;
+                       g_error ("Unknown WapiHandleType: %d\n", type);
        }
 
        return type_size;