mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
fix warning on optimized builds
svn path=/trunk/; revision=14367
This commit is contained in:
parent
903225f24e
commit
e7986f168f
1 changed files with 6 additions and 3 deletions
|
@ -294,16 +294,19 @@ NtReleaseMutant(IN HANDLE MutantHandle,
|
|||
IN PLONG PreviousCount OPTIONAL)
|
||||
{
|
||||
PKMUTANT Mutant;
|
||||
KPROCESSOR_MODE PreviousMode = ExGetPreviousMode();
|
||||
KPROCESSOR_MODE PreviousMode;
|
||||
NTSTATUS Status = STATUS_SUCCESS;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
PreviousMode = ExGetPreviousMode();
|
||||
|
||||
DPRINT("NtReleaseMutant(MutantHandle 0%x PreviousCount 0%x)\n",
|
||||
MutantHandle,
|
||||
PreviousCount);
|
||||
|
||||
/* Check Output Safety */
|
||||
if(PreviousMode == UserMode && PreviousCount) {
|
||||
if(PreviousMode != KernelMode && PreviousCount) {
|
||||
|
||||
_SEH_TRY {
|
||||
|
||||
|
@ -330,7 +333,7 @@ NtReleaseMutant(IN HANDLE MutantHandle,
|
|||
/* Check for Success and release if such */
|
||||
if(NT_SUCCESS(Status)) {
|
||||
|
||||
LONG Prev;
|
||||
LONG Prev = 0;
|
||||
|
||||
/* release the mutant. doing so might raise an exception which we're
|
||||
required to catch! */
|
||||
|
|
Loading…
Reference in a new issue