--- mstools/samples/sdktools/spy/app/wprintf.c 2018/08/09 18:24:28 1.1 +++ mstools/samples/sdktools/spy/app/wprintf.c 2018/08/09 18:27:16 1.1.1.2 @@ -1,4 +1,6 @@ + + /******************************************************************************\ * This is a part of the Microsoft Source Code Samples. * Copyright (C) 1993 Microsoft Corporation. @@ -798,7 +800,7 @@ HWND hwnd * Arguments: * HWND hwnd - handle to the debug window * LPSTR format - pointer to the format string -* LPSTR marker - pointer to marker +* va_list marker - pointer to marker * * Returns: * INT - number of arguments printed @@ -808,7 +810,7 @@ PUBLIC INT FAR cdecl vwprintf( HWND hwnd, LPSTR format, -LPSTR marker +va_list marker ) { static HWND hwndLast = NULL; @@ -918,15 +920,15 @@ BOOL bRedraw } while (GetCurrentThreadId() == (DWORD)pTxt->csSync.OwningThread){ - LeaveCrit(pTxt); - iLeftCritSect++; + LeaveCrit(pTxt); + iLeftCritSect++; } SetScrollRange(hwnd, SB_VERT, 0, iRange, FALSE); SetScrollPos(hwnd, SB_VERT, pTxt->iTop, bRedraw); if(iLeftCritSect) { - EnterCrit(pTxt); + EnterCrit(pTxt); } iRange = pTxt->MaxLen - CharsInDebugWindow(hwnd) + 1; @@ -936,13 +938,13 @@ BOOL bRedraw } if(iLeftCritSect) - LeaveCrit(pTxt); + LeaveCrit(pTxt); SetScrollRange(hwnd, SB_HORZ, 0, iRange, FALSE); SetScrollPos(hwnd, SB_HORZ, pTxt->iLeft, bRedraw); while (iLeftCritSect--) { - EnterCrit(pTxt); + EnterCrit(pTxt); } iSem--;