From: bsalomon@google.com Date: Thu, 14 Apr 2011 12:26:31 +0000 (+0000) Subject: Fix wrong class name used when unregistering class for dummy window in SkOsWindow_win.cpp X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~18677 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5848e49aed4435ac0cf7756372a1690e1e639a8;p=platform%2Fupstream%2FlibSkiaSharp.git Fix wrong class name used when unregistering class for dummy window in SkOsWindow_win.cpp Skia issue 212. git-svn-id: http://skia.googlecode.com/svn/trunk@1124 2bbb7eff-a529-9590-31e7-b0007b416f81 --- diff --git a/src/utils/win/SkOSWindow_Win.cpp b/src/utils/win/SkOSWindow_Win.cpp index 44d23cf..5ccb9e8 100644 --- a/src/utils/win/SkOSWindow_Win.cpp +++ b/src/utils/win/SkOSWindow_Win.cpp @@ -302,7 +302,7 @@ static HWND create_dummy() wc.hCursor = LoadCursor(NULL, IDC_ARROW); wc.hbrBackground = NULL; wc.lpszMenuName = NULL; - wc.lpszClassName = STR_LIT("DummyWindow"); + wc.lpszClassName = STR_LIT("DummyClass"); if(!RegisterClass(&wc)) { @@ -315,8 +315,8 @@ static HWND create_dummy() AdjustWindowRectEx(&windowRect, style, false, exStyle); if(!(dummy = CreateWindowEx(exStyle, + STR_LIT("DummyClass"), STR_LIT("DummyWindow"), - STR_LIT("Dummy Window"), WS_CLIPSIBLINGS | WS_CLIPCHILDREN | style, 0, 0, windowRect.right-windowRect.left, @@ -325,7 +325,7 @@ static HWND create_dummy() module, NULL))) { - UnregisterClass(STR_LIT("Dummy Window"), module); + UnregisterClass(STR_LIT("DummyClass"), module); return NULL; } ShowWindow(dummy, SW_HIDE); @@ -336,7 +336,7 @@ static HWND create_dummy() void kill_dummy(HWND dummy) { DestroyWindow(dummy); HMODULE module = GetModuleHandle(NULL); - UnregisterClass(STR_LIT("Dummy Window"), module); + UnregisterClass(STR_LIT("DummyClass"), module); } // WGL_ARB_pixel_format