Author: greatlrd
Date: Mon Sep 24 23:17:15 2007
New Revision: 29195
URL: 
http://svn.reactos.org/svn/reactos?rev=29195&view=rev
Log:
clean up : move EngWideCharToMultiByte from stubs.c to eng.c and mark it as implement
Modified:
    trunk/reactos/dll/win32/gdi32/misc/stubs.c
    trunk/reactos/dll/win32/gdi32/objects/eng.c
Modified: trunk/reactos/dll/win32/gdi32/misc/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/misc/stubs…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/misc/stubs.c (original)
+++ trunk/reactos/dll/win32/gdi32/misc/stubs.c Mon Sep 24 23:17:15 2007
@@ -2282,9 +2282,6 @@
     return NtGdiCreateBitmap(Width, Height, Planes, BitsPixel, (LPBYTE) pUnsafeBits);
 }
-
-
-
 /*
  * @unimplemented
  */
@@ -2295,30 +2292,6 @@
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return 0;
 }
-
-
-
-/*
- * @unimplemented
- */
-INT STDCALL
-EngWideCharToMultiByte( UINT CodePage,
-                        LPWSTR WideCharString,
-                        INT BytesInWideCharString,
-                        LPSTR MultiByteString,
-                        INT BytesInMultiByteString)
-{
-  return WideCharToMultiByte(
-                         CodePage,
-                         0,
-                         WideCharString,
-                        (BytesInWideCharString/sizeof(WCHAR)), /* Bytes to (in WCHARs) */
-                         MultiByteString,
-                         BytesInMultiByteString,
-                         NULL,
-                         NULL);
-}
-
 /*
  * @unimplemented
Modified: trunk/reactos/dll/win32/gdi32/objects/eng.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/gdi32/objects/en…
==============================================================================
--- trunk/reactos/dll/win32/gdi32/objects/eng.c (original)
+++ trunk/reactos/dll/win32/gdi32/objects/eng.c Mon Sep 24 23:17:15 2007
@@ -17,6 +17,52 @@
 EngAcquireSemaphore ( IN HSEMAPHORE hsem )
 {
     RtlEnterCriticalSection((PRTL_CRITICAL_SECTION)hsem);
+}
+
+
+/*
+ * @unimplemented
+ */
+BOOL
+copy_my_glyphset( FD_GLYPHSET *dst_glyphset , FD_GLYPHSET * src_glyphset, ULONG Size)
+{
+    BOOL retValue = FALSE;
+
+    memcpy(src_glyphset, dst_glyphset, Size);
+    if (src_glyphset->cRuns == 0)
+    {
+        retValue = TRUE;
+    }
+
+    /* FIXME copy wrun */
+    return retValue;
+}
+
+FD_GLYPHSET* STDCALL
+EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
+{
+    FD_GLYPHSET * ntfd_glyphset;
+    FD_GLYPHSET * myfd_glyphset = NULL;
+
+    ntfd_glyphset = NtGdiEngComputeGlyphSet(nCodePage,nFirstChar,cChars);
+
+    if (!ntfd_glyphset)
+    {
+        if (ntfd_glyphset->cjThis)
+        {
+            myfd_glyphset = GlobalAlloc(0,ntfd_glyphset->cjThis);
+
+            if (!myfd_glyphset)
+            {
+                if
(copy_my_glyphset(myfd_glyphset,ntfd_glyphset,ntfd_glyphset->cjThis) == FALSE)
+                {
+                    GlobalFree(myfd_glyphset);
+                    myfd_glyphset = NULL;
+                }
+            }
+        }
+    }
+    return myfd_glyphset;
 }
 /*
@@ -160,47 +206,20 @@
   RtlLeaveCriticalSection( (PRTL_CRITICAL_SECTION) hsem);
 }
-BOOL
-copy_my_glyphset( FD_GLYPHSET *dst_glyphset , FD_GLYPHSET * src_glyphset, ULONG Size)
-{
-    BOOL retValue = FALSE;
-
-    memcpy(src_glyphset, dst_glyphset, Size);
-    if (src_glyphset->cRuns == 0)
-    {
-        retValue = TRUE;
-    }
-
-    /* FIXME copy wrun */
-    return retValue;
-}
-
-/*
- * @unimplemented
- */
-FD_GLYPHSET* STDCALL
-EngComputeGlyphSet(INT nCodePage,INT nFirstChar,INT cChars)
-{
-    FD_GLYPHSET * ntfd_glyphset;
-    FD_GLYPHSET * myfd_glyphset = NULL;
-
-    ntfd_glyphset = NtGdiEngComputeGlyphSet(nCodePage,nFirstChar,cChars);
-
-    if (!ntfd_glyphset)
-    {
-        if (ntfd_glyphset->cjThis)
-        {
-            myfd_glyphset = GlobalAlloc(0,ntfd_glyphset->cjThis);
-
-            if (!myfd_glyphset)
-            {
-                if
(copy_my_glyphset(myfd_glyphset,ntfd_glyphset,ntfd_glyphset->cjThis) == FALSE)
-                {
-                    GlobalFree(myfd_glyphset);
-                    myfd_glyphset = NULL;
-                }
-            }
-        }
-    }
-    return myfd_glyphset;
-}
+
+
+
+/*
+ * @implemented
+ */
+INT
+STDCALL
+EngWideCharToMultiByte( UINT CodePage,
+                        LPWSTR WideCharString,
+                        INT BytesInWideCharString,
+                        LPSTR MultiByteString,
+                        INT BytesInMultiByteString)
+{
+  return WideCharToMultiByte(CodePage, 0, WideCharString,
(BytesInWideCharString/sizeof(WCHAR)),
+                             MultiByteString, BytesInMultiByteString, NULL, NULL);
+}