This should be:

    *result |= LOAD_FAILURE

so that the final result variable can have several flags set.