tSave code by having myCreateWindow call myCreateWindowEx. - vaccinewars - be a doctor and try to vaccinate the world
 (HTM) git clone git://src.adamsgaard.dk/vaccinewars
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 9aa59786df088c7d733d193f89d860aae68b6290
 (DIR) parent 1a60f851b0888cd4c1fe4242d39a8de48ffc6fb2
 (HTM) Author: Ben Webb <ben@salilab.org>
       Date:   Mon,  2 Sep 2002 13:42:52 +0000
       
       Save code by having myCreateWindow call myCreateWindowEx.
       
       
       Diffstat:
         M src/gtkport/unicodewrap.c           |      18 +++---------------
       
       1 file changed, 3 insertions(+), 15 deletions(-)
       ---
 (DIR) diff --git a/src/gtkport/unicodewrap.c b/src/gtkport/unicodewrap.c
       t@@ -105,21 +105,9 @@ HWND myCreateWindow(LPCTSTR lpClassName, LPCTSTR lpWindowName, DWORD dwStyle,
                            int x, int y, int nWidth, int nHeight, HWND hwndParent,
                            HMENU hMenu, HANDLE hInstance, LPVOID lpParam)
        {
       -  HWND retval;
       -
       -  if (unicode_support) {
       -    gunichar2 *classname, *winname;
       -    classname = strtow32(lpClassName, -1);
       -    winname = strtow32(lpWindowName, -1);
       -    retval = CreateWindowW(classname, winname, dwStyle, x, y, nWidth,
       -                           nHeight, hwndParent, hMenu, hInstance, lpParam);
       -    g_free(classname);
       -    g_free(winname);
       -  } else {
       -    retval = CreateWindowA(lpClassName, lpWindowName, dwStyle, x, y, nWidth,
       -                           nHeight, hwndParent, hMenu, hInstance, lpParam);
       -  }
       -  return retval;
       +  return myCreateWindowEx(0, lpClassName, lpWindowName, dwStyle, x, y,
       +                          nWidth, nHeight, hwndParent, hMenu, hInstance,
       +                          lpParam);
        }
        
        HWND myCreateWindowEx(DWORD dwExStyle, LPCTSTR lpClassName,