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 @@
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 @@
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 @@
module,
NULL)))
{
- UnregisterClass(STR_LIT("Dummy Window"), module);
+ UnregisterClass(STR_LIT("DummyClass"), module);
return NULL;
}
ShowWindow(dummy, SW_HIDE);
@@ -336,7 +336,7 @@
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