Skip to content

Commit

Permalink
Fix Stack_Peek
Browse files Browse the repository at this point in the history
  • Loading branch information
uglym8 committed Mar 13, 2017
1 parent 9d4811e commit 3f13910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion winpr/libwinpr/utils/collections/Stack.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void* Stack_Peek(wStack* stack)
EnterCriticalSection(&stack->lock);

if (stack->size > 0)
obj = stack->array[stack->size];
obj = stack->array[stack->size - 1];

if (stack->synchronized)
LeaveCriticalSection(&stack->lock);
Expand Down

0 comments on commit 3f13910

Please sign in to comment.