Changeset 14549


Ignore:
Timestamp:
Jul 1, 2015, 12:58:00 AM (7 years ago)
Author:
mikedld
Message:

Fix tr_net_strerror on Windows (oops)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r14548 r14549  
    7676    *buf = '\0';
    7777#ifdef _WIN32
    78     FormatMessageA (FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, buf, buflen, NULL);
     78    DWORD len = FormatMessageA (FORMAT_MESSAGE_FROM_SYSTEM, NULL, err, 0, buf, buflen, NULL);
    7979    while (len > 0 && buf[len - 1] >= '\0' && buf[len - 1] <= ' ')
    8080      buf[--len] = '\0';
Note: See TracChangeset for help on using the changeset viewer.