Skip to content
This repository was archived by the owner on Oct 21, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions ProcComs/ProcComs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions RemCom.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down