WaE: implicit conversion (IntegralCast) from bool to 'long'

Use the proper RET_OK amd RET_CANCEL parameters to EndDialog().

Change-Id: I2500e5e9793ee98c8cf38fc094d9f984576b67db
WaE: implicit conversion of literal of type 'sal_Bool' to 'bool'

Change-Id: I0b325abc275b672a96c5513d285c0f5764dfb4fe