wIconChangeImageFile change image only if found
commit5728b6436ddef73e2995548b4b2ec061f7567a15
authorRodolfo García Peñas (kix) <kix@kix.es>
Wed, 31 Oct 2012 21:44:19 +0000 (31 22:44 +0100)
committerCarlos R. Mafra <crmafra@gmail.com>
Wed, 31 Oct 2012 22:24:28 +0000 (31 22:24 +0000)
tree948f466687c6af8c3401e50d1c3f382e15ab93b6
parent3d0223ded4979c3d347baa0999573f8651766b0d
wIconChangeImageFile change image only if found

This patch changes the behavior of wIconChangeImageFile.

Before apply this patch the behavior was:

The image (file_image) is set to NULL, then the function tried to find
a new image. If the new image was not found, the variable file_image contains
NULL when the function returns, and the return code was 1.

With this patch the image is changed only if a new image is found.
src/icon.c