Don't warn when G_MAXLONG is passed as length.
2005-08-27 Matthias Clasen <mclasen@redhat.com> * gdk/x11/gdkproperty-x11.c (gdk_property_get): Don't warn when G_MAXLONG is passed as length.
This commit is contained in:
		 Matthias Clasen
					Matthias Clasen
				
			
				
					committed by
					
						 Matthias Clasen
						Matthias Clasen
					
				
			
			
				
	
			
			
			 Matthias Clasen
						Matthias Clasen
					
				
			
						parent
						
							f906e82a93
						
					
				
				
					commit
					6663cc051d
				
			| @ -530,11 +530,8 @@ gdk_property_get (GdkWindow   *window, | ||||
|    */ | ||||
|   get_length = length + 3; | ||||
|   if (get_length > G_MAXLONG) | ||||
|     { | ||||
|       g_warning ("gdk_property_get(): length value has wrapped in calculation " | ||||
| 		 "(did you pass G_MAXLONG?)"); | ||||
|       get_length = G_MAXLONG; | ||||
|     } | ||||
|     get_length = G_MAXLONG; | ||||
|  | ||||
|   /* To fail, either the user passed 0 or G_MAXULONG */ | ||||
|   get_length = get_length / 4; | ||||
|   if (get_length == 0) | ||||
|  | ||||
		Reference in New Issue
	
	Block a user