Skip to content

Commit

Permalink
Fix some errors in function prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
bonsaiviking committed Sep 24, 2020
1 parent fcf78ff commit a09e36b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Common/Packet32.h
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ extern "C"
BOOLEAN PacketSetBpf(LPADAPTER AdapterObject, struct bpf_program* fp);
BOOLEAN PacketSetLoopbackBehavior(LPADAPTER AdapterObject, UINT LoopbackBehavior);
BOOLEAN PacketSetTimestampMode(LPADAPTER AdapterObject, ULONG mode);
BOOLEAN PacketGetTimestampModes(LPADAPTER AdapterObject, PULONG modes, PULONG BufferSize);
BOOLEAN PacketGetTimestampModes(LPADAPTER AdapterObject, PULONG pModes);
INT PacketSetSnapLen(LPADAPTER AdapterObject, int snaplen);
BOOLEAN PacketGetStats(LPADAPTER AdapterObject, struct bpf_stat* s);
BOOLEAN PacketGetStatsEx(LPADAPTER AdapterObject, struct bpf_stat* s);
Expand Down
4 changes: 2 additions & 2 deletions packetWin7/Dll/Packet32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3202,15 +3202,15 @@ BOOLEAN PacketSetTimestampMode(LPADAPTER AdapterObject, ULONG mode)
\return If the function succeeds, the return value is nonzero. If the return value is zero, pModes[0] contains
the number of ULONGs that are needed to contain the timestamp mode list.
*/
BOOLEAN PacketGetTimestampModes(LPADAPTER AdapterObject, PULONG pModes, PULONG pNumModes)
BOOLEAN PacketGetTimestampModes(LPADAPTER AdapterObject, PULONG pModes)
{
BOOLEAN result = FALSE;
DWORD BytesReturned = 0;
TRACE_ENTER();

if (AdapterObject->Flags != INFO_FLAG_NDIS_ADAPTER)
{
*pNumModes = 0;
*pModes = 0;
TRACE_PRINT("PacketGetTimestampMode: not allowed on non-NPF adapters");
TRACE_EXIT();
SetLastError(ERROR_NOT_SUPPORTED);
Expand Down

0 comments on commit a09e36b

Please sign in to comment.