Commit 3093ac8b authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

oleaut32: Use more wide-char string literals.

parent d452c757
...@@ -1138,39 +1138,23 @@ HCURSOR WINAPI OleIconToCursor( HINSTANCE hinstExe, HICON hIcon) ...@@ -1138,39 +1138,23 @@ HCURSOR WINAPI OleIconToCursor( HINSTANCE hinstExe, HICON hIcon)
*/ */
HRESULT WINAPI GetAltMonthNames(LCID lcid, LPOLESTR **str) HRESULT WINAPI GetAltMonthNames(LCID lcid, LPOLESTR **str)
{ {
static const WCHAR ar_month1W[] = {0x645,0x62d,0x631,0x645,0};
static const WCHAR ar_month2W[] = {0x635,0x641,0x631,0};
static const WCHAR ar_month3W[] = {0x631,0x628,0x64a,0x639,' ',0x627,0x644,0x627,0x648,0x644,0};
static const WCHAR ar_month4W[] = {0x631,0x628,0x64a,0x639,' ',0x627,0x644,0x62b,0x627,0x646,0x64a,0};
static const WCHAR ar_month5W[] = {0x62c,0x645,0x627,0x62f,0x649,' ',0x627,0x644,0x627,0x648,0x644,0x649,0};
static const WCHAR ar_month6W[] = {0x62c,0x645,0x627,0x62f,0x649,' ',0x627,0x644,0x62b,0x627,0x646,0x64a,0x629,0};
static const WCHAR ar_month7W[] = {0x631,0x62c,0x628,0};
static const WCHAR ar_month8W[] = {0x634,0x639,0x628,0x627,0x646,0};
static const WCHAR ar_month9W[] = {0x631,0x645,0x636,0x627,0x646,0};
static const WCHAR ar_month10W[] = {0x634,0x648,0x627,0x643,0};
static const WCHAR ar_month11W[] = {0x630,0x648,' ',0x627,0x644,0x642,0x639,0x62f,0x629,0};
static const WCHAR ar_month12W[] = {0x630,0x648,' ',0x627,0x644,0x62d,0x62c,0x629,0};
static const WCHAR *arabic_hijri[] = static const WCHAR *arabic_hijri[] =
{ {
ar_month1W, L"\x0645\x062d\x0631\x0645",
ar_month2W, L"\x0635\x0641\x0631",
ar_month3W, L"\x0631\x0628\x064a\x0639 \x0627\x0644\x0627\x0648\x0644",
ar_month4W, L"\x0631\x0628\x064a\x0639 \x0627\x0644\x062b\x0627\x0646\x064a",
ar_month5W, L"\x062c\x0645\x0627\x062f\x0649 \x0627\x0644\x0627\x0648\x0644\x0649",
ar_month6W, L"\x062c\x0645\x0627\x062f\x0649 \x0627\x0644\x062b\x0627\x0646\x064a\x0629",
ar_month7W, L"\x0631\x062c\x0628",
ar_month8W, L"\x0634\x0639\x0628\x0627\x0646",
ar_month9W, L"\x0631\x0645\x0636\x0627\x0646",
ar_month10W, L"\x0634\x0648\x0627\x0643",
ar_month11W, L"\x0630\x0648 \x0627\x0644\x0642\x0639\x062f\x0629",
ar_month12W, L"\x0630\x0648 \x0627\x0644\x062d\x062c\x0629",
NULL NULL
}; };
static const WCHAR pl_month9W[] = {'w','r','z','e',0x15b,'n','i','a',0};
static const WCHAR pl_month10W[] = {'p','a',0x17a,'d','z','i','e','r','n','i','k','a',0};
static const WCHAR *polish_genitive_names[] = static const WCHAR *polish_genitive_names[] =
{ {
L"stycznia", L"stycznia",
...@@ -1181,40 +1165,27 @@ HRESULT WINAPI GetAltMonthNames(LCID lcid, LPOLESTR **str) ...@@ -1181,40 +1165,27 @@ HRESULT WINAPI GetAltMonthNames(LCID lcid, LPOLESTR **str)
L"czerwca", L"czerwca",
L"lipca", L"lipca",
L"sierpnia", L"sierpnia",
pl_month9W, L"wrze\x015bnia",
pl_month10W, L"pa\x017a" "dziernika",
L"listopada", L"listopada",
L"grudnia", L"grudnia",
NULL NULL
}; };
static const WCHAR ru_month1W[] = {0x44f,0x43d,0x432,0x430,0x440,0x44f,0};
static const WCHAR ru_month2W[] = {0x444,0x435,0x432,0x440,0x430,0x43b,0x44f,0};
static const WCHAR ru_month3W[] = {0x43c,0x430,0x440,0x442,0x430,0};
static const WCHAR ru_month4W[] = {0x430,0x43f,0x440,0x435,0x43b,0x44f,0};
static const WCHAR ru_month5W[] = {0x43c,0x430,0x44f,0};
static const WCHAR ru_month6W[] = {0x438,0x44e,0x43d,0x44f,0};
static const WCHAR ru_month7W[] = {0x438,0x44e,0x43b,0x44f,0};
static const WCHAR ru_month8W[] = {0x430,0x432,0x433,0x443,0x441,0x442,0x430,0};
static const WCHAR ru_month9W[] = {0x441,0x435,0x43d,0x442,0x44f,0x431,0x440,0x44f,0};
static const WCHAR ru_month10W[] = {0x43e,0x43a,0x442,0x44f,0x431,0x440,0x44f,0};
static const WCHAR ru_month11W[] = {0x43d,0x43e,0x44f,0x431,0x440,0x44f,0};
static const WCHAR ru_month12W[] = {0x434,0x435,0x43a,0x430,0x431,0x440,0x44f,0};
static const WCHAR *russian_genitive_names[] = static const WCHAR *russian_genitive_names[] =
{ {
ru_month1W, L"\x044f\x043d\x0432\x0430\x0440\x044f",
ru_month2W, L"\x0444\x0435\x0432\x0440\x0430\x043b\x044f",
ru_month3W, L"\x043c\x0430\x0440\x0442\x0430",
ru_month4W, L"\x0430\x043f\x0440\x0435\x043b\x044f",
ru_month5W, L"\x043c\x0430\x044f",
ru_month6W, L"\x0438\x044e\x043d\x044f",
ru_month7W, L"\x0438\x044e\x043b\x044f",
ru_month8W, L"\x0430\x0432\x0433\x0443\x0441\x0442\x0430",
ru_month9W, L"\x0441\x0435\x043d\x0442\x044f\x0431\x0440\x044f",
ru_month10W, L"\x043e\x043a\x0442\x044f\x0431\x0440\x044f",
ru_month11W, L"\x043d\x043e\x044f\x0431\x0440\x044f",
ru_month12W, L"\x0434\x0435\x043a\x0430\x0431\x0440\x044f",
NULL NULL
}; };
......
...@@ -338,7 +338,7 @@ HRESULT WINAPI OleCreateFontIndirect( ...@@ -338,7 +338,7 @@ HRESULT WINAPI OleCreateFontIndirect(
*ppvObj = 0; *ppvObj = 0;
if (!lpFontDesc) { if (!lpFontDesc) {
static WCHAR fname[] = { 'S','y','s','t','e','m',0 }; static WCHAR fname[] = L"System";
fd.cbSizeofstruct = sizeof(fd); fd.cbSizeofstruct = sizeof(fd);
fd.lpstrName = fname; fd.lpstrName = fname;
......
...@@ -2261,7 +2261,6 @@ HRESULT __RPC_STUB IPropertyBag_Read_Stub( ...@@ -2261,7 +2261,6 @@ HRESULT __RPC_STUB IPropertyBag_Read_Stub(
DWORD varType, DWORD varType,
IUnknown *pUnkObj) IUnknown *pUnkObj)
{ {
static const WCHAR emptyWstr[] = {0};
IDispatch *disp; IDispatch *disp;
HRESULT hr; HRESULT hr;
TRACE("(%p, %s, %p, %p, %x, %p)\n", This, debugstr_w(pszPropName), pVar, TRACE("(%p, %s, %p, %p, %x, %p)\n", This, debugstr_w(pszPropName), pVar,
...@@ -2287,7 +2286,7 @@ HRESULT __RPC_STUB IPropertyBag_Read_Stub( ...@@ -2287,7 +2286,7 @@ HRESULT __RPC_STUB IPropertyBag_Read_Stub(
V_UNKNOWN(pVar) = pUnkObj; V_UNKNOWN(pVar) = pUnkObj;
break; break;
case VT_BSTR: case VT_BSTR:
V_BSTR(pVar) = SysAllocString(emptyWstr); V_BSTR(pVar) = SysAllocString(L"");
break; break;
case VT_SAFEARRAY: case VT_SAFEARRAY:
FIXME("Safearray support not yet implemented.\n"); FIXME("Safearray support not yet implemented.\n");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment