Changelog: server/mapping.c: get_file_size Use object already initialized as argument to get_unix_fd This makes the Icons undistorted in Xilinx Webpack and lets ngdbuild work again. Native commctrl still shows distorted images (but distorted in another way). Bye -- Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt --------- Tel. 06151 162516 -------- Fax. 06151 164321 ---------- Index: wine/server/mapping.c =================================================================== RCS file: /home/wine/wine/server/mapping.c,v retrieving revision 1.39 diff -u -w -r1.39 mapping.c --- wine/server/mapping.c 14 Feb 2003 20:27:10 -0000 1.39 +++ wine/server/mapping.c 15 Feb 2003 14:01:27 -0000 @@ -244,7 +244,7 @@ inline static int get_file_size( struct mapping *mapping, int *size_high, int *size_low ) { struct stat st; - int unix_fd = get_unix_fd( mapping->obj.fd_obj ); + int unix_fd = get_unix_fd( get_obj_fd( (struct object *)mapping->file )); if (fstat( unix_fd, &st ) == -1) return 0; *size_high = st.st_size >> 32;