BUG: gflSaveBitmapW

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

iycgtptyarvg
Posts: 81
Joined: Wed Jan 24, 2007 3:59 pm
Location: The Netherlands

BUG: gflSaveBitmapW

Post by iycgtptyarvg »

I just converted from 3.11 to 3.40 and noticed a bug in one of the header files.
It declares the first parameter of the gflSaveBitmapW function as wchar_t *pwcFile instead of const wchar_t *pwcFile.

The problem is either one of two:

1.
You made a typo, and now we have to do an ugly cast to (wchar_t *).

2.
You didn't make a typo, and you actually ALTER the parameter. This would be disastrous for me because then you don't know how many bytes the buffer is. So, I REALLY hope it was a typo.


Please correct this, or at least tell us why this bug is in there.
(\__/)
(='.'=) This is Bunny. Copy and paste bunny into
(")_(") your signature to help him gain world domination.
User avatar
xnview
Author of XnView
Posts: 36389
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: BUG: gflSaveBitmapW

Post by xnview »

it's a const if you don't use GFL_SAVE_WANT_FILENAME
Pierre.