bug 586187 - Build failure in LayerManagerD3D9 due to --disable-ipc not also defining Unicode, r=khuey a=bustage
authorJustin Wood <Callek@gmail.com>
Wed, 11 Aug 2010 18:05:14 +0200
changeset 49393 41b686bb548a05c2ebc0f809621f5a1baa4e1dcd
parent 49392 9b4466b55eaf082b15582e642225e887a6832d26
child 49394 fc3b32b2f050353c734ab782dc9623ef669587d0
push idunknown
push userunknown
push dateunknown
reviewerskhuey, bustage
bugs586187
milestone2.0b4pre
bug 586187 - Build failure in LayerManagerD3D9 due to --disable-ipc not also defining Unicode, r=khuey a=bustage
gfx/layers/d3d9/DeviceManagerD3D9.cpp
--- a/gfx/layers/d3d9/DeviceManagerD3D9.cpp
+++ b/gfx/layers/d3d9/DeviceManagerD3D9.cpp
@@ -194,19 +194,19 @@ DeviceManagerD3D9::Init()
       wc.lpfnWndProc = ::DefWindowProc;
       wc.lpszClassName = kClassName;
       if (!RegisterClassW(&wc)) {
           NS_WARNING("Failed to register window class for DeviceManager.");
           return false;
       }
   }
 
-  mFocusWnd = CreateWindow(kClassName, L"D3D9Window", WS_OVERLAPPEDWINDOW,
-                           CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL,
-                           NULL, GetModuleHandle(NULL), NULL);
+  mFocusWnd = ::CreateWindowW(kClassName, L"D3D9Window", WS_OVERLAPPEDWINDOW,
+                              CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, NULL,
+                              NULL, GetModuleHandle(NULL), NULL);
 
   if (!mFocusWnd) {
     NS_WARNING("Failed to create DeviceManagerD3D9 Window.");
     return false;
   }
 
   HMODULE d3d9 = LoadLibraryW(L"d3d9.dll");
   Direct3DCreate9Func d3d9Create = (Direct3DCreate9Func)