Page 1 of 1

BUG: gflSaveBitmapW

Posted: Fri Apr 22, 2011 1:15 pm
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.

Re: BUG: gflSaveBitmapW

Posted: Tue Apr 26, 2011 2:07 pm
by xnview
it's a const if you don't use GFL_SAVE_WANT_FILENAME