mirror of
https://github.com/reactos/reactos.git
synced 2025-05-29 14:08:22 +00:00
- correct fix, also free the allocated buffer
svn path=/trunk/; revision=41433
This commit is contained in:
parent
8519197da3
commit
7e8ae7ca6b
1 changed files with 4 additions and 1 deletions
|
@ -307,8 +307,11 @@ void printWindowsError()
|
||||||
(LPTSTR) &lpMsgBuf,
|
(LPTSTR) &lpMsgBuf,
|
||||||
0, NULL );
|
0, NULL );
|
||||||
|
|
||||||
printf("Error: %p\nPress Enter..\n", lpMsgBuf);
|
_tprintf(_T("Error: %s\nPress Enter..\n"), (LPTSTR)lpMsgBuf);
|
||||||
getchar();
|
getchar();
|
||||||
|
|
||||||
|
if(lpMsgBuf)
|
||||||
|
LocalFree(lpMsgBuf);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue