From 81a8057c4edf91df67da2ff82a33d7436c05130e Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 28 Jul 1999 16:36:29 +0000 Subject: [PATCH] Bugfix: fixed freshly introduced bug in GlobalLock16. --- memory/global.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/memory/global.c b/memory/global.c index 04a748efb6e..10e74658c6d 100644 --- a/memory/global.c +++ b/memory/global.c @@ -399,7 +399,7 @@ SEGPTR WINAPI WIN16_GlobalLock16( HGLOBAL16 handle ) WARN("Invalid handle 0x%04x passed to WIN16_GlobalLock16!\n",handle); sel = 0; } - if (!GET_ARENA_PTR(handle)->base) + else if (!GET_ARENA_PTR(handle)->base) sel = 0; else GET_ARENA_PTR(handle)->lockCount++;