Author: jimtabor
Date: Wed Jun 7 05:45:18 2006
New Revision: 22263
URL:
http://svn.reactos.ru/svn/reactos?rev=22263&view=rev
Log:
Quick patch.
Modified:
trunk/reactos/subsystems/win32/win32k/objects/text.c
Modified: trunk/reactos/subsystems/win32/win32k/objects/text.c
URL:
http://svn.reactos.ru/svn/reactos/trunk/reactos/subsystems/win32/win32k/obj…
==============================================================================
--- trunk/reactos/subsystems/win32/win32k/objects/text.c (original)
+++ trunk/reactos/subsystems/win32/win32k/objects/text.c Wed Jun 7 05:45:18 2006
@@ -3280,12 +3280,11 @@
if (!dc)
{
SetLastWin32Error(ERROR_INVALID_HANDLE);
- }
- else
- {
- Ret = dc->w.charExtra;
- if( Set ) dc->w.charExtra = CharExtra;
- }
+ return Ret;
+ }
+ Ret = dc->w.charExtra;
+ if( Set ) dc->w.charExtra = CharExtra;
+ DC_UnlockDc(dc);
return (Ret);
}