void error_set_win32(Error **errp, int win32_err, ErrorClass err_class,

                     const char *fmt, ...)

{

    va_list ap;

    char *msg1, *msg2;



    if (errp == NULL) {

        return;

    }



    va_start(ap, fmt);

    error_setv(errp, err_class, 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_set_win32(Error **errp, int win32_err, ErrorClass err_class,

                     const char *fmt, ...)

{

    va_list ap;

    char *msg1, *msg2;



    if (errp == NULL) {

        return;

    }



    va_start(ap, fmt);

    error_setv(errp, err_class, 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_set_win32(Error **errp, int win32_err, ErrorClass err_class, void error_set_win32(Error **errp, int win32_err, ErrorClass err_class,                      const char *fmt, ...)     error_setv(errp, err_class, fmt, ap);
void FUNC_0(Error **VAR_0, int VAR_1, ErrorClass VAR_2,

                     const char *VAR_3, ...)

{

    va_list ap;

    char *VAR_4, *VAR_5;



    if (VAR_0 == NULL) {

        return;

    }



    va_start(ap, VAR_3);

    error_setv(VAR_0, VAR_2, VAR_3, ap);

    va_end(ap);



    if (VAR_1 != 0) {

        VAR_4 = (*VAR_0)->msg;

        VAR_5 = g_win32_error_message(VAR_1);

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

                                       (unsigned)VAR_1);

        g_free(VAR_5);

        g_free(VAR_4);

    }

}

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