diff options
Diffstat (limited to 'rbutil')
-rw-r--r-- | rbutil/ipodpatcher/ipodio-win32.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rbutil/ipodpatcher/ipodio-win32.c b/rbutil/ipodpatcher/ipodio-win32.c index 5125c070f8..29391bfa4f 100644 --- a/rbutil/ipodpatcher/ipodio-win32.c +++ b/rbutil/ipodpatcher/ipodio-win32.c | |||
@@ -56,12 +56,12 @@ static int unlock_volume(HANDLE hDisk) | |||
56 | 56 | ||
57 | void print_error(char* msg) | 57 | void print_error(char* msg) |
58 | { | 58 | { |
59 | char* pMsgBuf; | 59 | LPSTR pMsgBuf = NULL; |
60 | 60 | ||
61 | printf(msg); | 61 | printf(msg); |
62 | FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | | 62 | FormatMessageA(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM | |
63 | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), | 63 | FORMAT_MESSAGE_IGNORE_INSERTS, NULL, GetLastError(), |
64 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&pMsgBuf, | 64 | MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), pMsgBuf, |
65 | 0, NULL); | 65 | 0, NULL); |
66 | printf(pMsgBuf); | 66 | printf(pMsgBuf); |
67 | LocalFree(pMsgBuf); | 67 | LocalFree(pMsgBuf); |