Bug 525106 - Make WebGL compile with UNCODE defined or not-defined by using explicit W annotations on the relevant functions/structs, r=vlad

--HG--
extra : rebase_source : 4a1092dc67cc0f9a2c93cf2564ac5fd1e49a8bc8
This commit is contained in:
Benjamin Smedberg 2009-11-11 14:25:42 -05:00
parent 08e4323193
commit 698078cb35

View File

@ -143,24 +143,24 @@ nsGLPbufferWGL::Init(WebGLContext *priv)
mPriv = priv;
WNDCLASS wc;
WNDCLASSW wc;
PIXELFORMATDESCRIPTOR pfd;
if (!GetClassInfo(GetModuleHandle(NULL), "GLEW", &wc)) {
if (!GetClassInfoW(GetModuleHandle(NULL), L"GLEW", &wc)) {
ZeroMemory(&wc, sizeof(WNDCLASS));
wc.hInstance = GetModuleHandle(NULL);
wc.lpfnWndProc = DefWindowProc;
wc.lpszClassName = "GLEW";
wc.lpszClassName = L"GLEW";
if (!RegisterClass(&wc)) {
if (!RegisterClassW(&wc)) {
LogMessage("Canvas 3D: RegisterClass failed");
return PR_FALSE;
}
}
// create window
mGlewWindow = CreateWindow("GLEW", "GLEW", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, NULL, NULL, GetModuleHandle(NULL), NULL);
mGlewWindow = CreateWindowW(L"GLEW", L"GLEW", 0, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT,
CW_USEDEFAULT, NULL, NULL, GetModuleHandle(NULL), NULL);
if (!mGlewWindow) {
LogMessage("Canvas 3D: CreateWindow failed");
return PR_FALSE;