void error_setg_win32(Error **errp, int win32_err, const char *fmt, ...)

{

    va_list ap;

    char *msg1, *msg2;



    if (errp == NULL) {

        return;

    }



    va_start(ap, fmt);

    error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);

    va_end(ap);



    if (win32_err != 0) {

        msg1 = (*errp)->msg;

        msg2 = g_win32_error_message(win32_err);

        (*errp)->msg = g_strdup_printf("%s: %s (error: %x)", msg1, msg2,

                                       (unsigned)win32_err);

        g_free(msg2);

        g_free(msg1);

    }

}

void error_setg_win32(Error **errp, int win32_err, const char *fmt, ...)

{

    va_list ap;

    char *msg1, *msg2;



    if (errp == NULL) {

        return;

    }



    va_start(ap, fmt);

    error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);

    va_end(ap);



    if (win32_err != 0) {

        msg1 = (*errp)->msg;

        msg2 = g_win32_error_message(win32_err);

        (*errp)->msg = g_strdup_printf("%s: %s (error: %x)", msg1, msg2,

                                       (unsigned)win32_err);

        g_free(msg2);

        g_free(msg1);

    }

}

void error_setg_win32(Error **errp, int win32_err, const char *fmt, ...)     error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);     error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap); void error_setg_win32(Error **errp, int win32_err, const char *fmt, ...)     error_setv(errp, ERROR_CLASS_GENERIC_ERROR, fmt, ap);
void FUNC_0(Error **VAR_0, int VAR_1, const char *VAR_2, ...)

{

    va_list ap;

    char *VAR_3, *VAR_4;



    if (VAR_0 == NULL) {

        return;

    }



    va_start(ap, VAR_2);

    error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_2, ap);

    va_end(ap);



    if (VAR_1 != 0) {

        VAR_3 = (*VAR_0)->msg;

        VAR_4 = g_win32_error_message(VAR_1);

        (*VAR_0)->msg = g_strdup_printf("%s: %s (error: %x)", VAR_3, VAR_4,

                                       (unsigned)VAR_1);

        g_free(VAR_4);

        g_free(VAR_3);

    }

}

void FUNC_0(Error **VAR_0, int VAR_1, const char *VAR_2, ...)
{ va_list ap; char *VAR_3, *VAR_4; if (VAR_0 == NULL) { return; } va_start(ap, VAR_2); error_setv(VAR_0, ERROR_CLASS_GENERIC_ERROR, VAR_2, ap); va_end(ap); if (VAR_1 != 0) { VAR_3 = (*VAR_0)->msg; VAR_4 = g_win32_error_message(VAR_1); (*VAR_0)->msg = g_strdup_printf("%s: %s (error: %x)", VAR_3, VAR_4,
(unsigned)VAR_1); g_free(VAR_4); g_free(VAR_3); } }