diff --git a/ProcComs/ProcComs.cpp b/ProcComs/ProcComs.cpp index 6bd1ffd..2fbe615 100644 --- a/ProcComs/ProcComs.cpp +++ b/ProcComs/ProcComs.cpp @@ -129,8 +129,6 @@ void wmain(int argc, WCHAR *argv[]) if (!CreateEnvironmentBlock(&lpvEnv, hToken, TRUE)) ShowLastError(L"CreateEnvironmentBlock"); - dwSize = sizeof(szUserProfile)/sizeof(WCHAR); - if (!GetUserProfileDirectory(hToken, szUserProfile, &dwSize)) ShowLastError(L"GetUserProfileDirectory"); // // TO DO: change NULL to '.' to use local account database diff --git a/RemCom.cpp b/RemCom.cpp index 523f8e0..200cba4 100644 --- a/RemCom.cpp +++ b/RemCom.cpp @@ -1097,10 +1097,10 @@ BOOL ExecuteRemoteCommand() if ( response.dwErrorCode == 0 ) _ftprintf( stderr, _T("\nRemote command returned %d(0x%X)\n"), - response.dwReturnCode ); + response.dwReturnCode, response.dwReturnCode); else _ftprintf( stderr, _T("\nRemote command failed to start. Returned error code is %d(0x%X)\n"), - response.dwErrorCode ); + response.dwErrorCode, response.dwReturnCode); return response.dwErrorCode; }