Benjamin Arai : oleaut32:
VarMonthName - Update error codes and helper functions.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jul 28 07:15:34 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 0eed4603c506b1c0495b592489c5a4e6282ad0e1
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=0eed4603c506b1c0495b592489c5a4e6282ad0e1
Author: Benjamin Arai <me at benjaminarai.com>
Date: Thu Jul 27 18:10:20 2006 -0700
oleaut32: VarMonthName - Update error codes and helper functions.
---
dlls/oleaut32/varformat.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/oleaut32/varformat.c b/dlls/oleaut32/varformat.c
index 77d1196..d515bc3 100644
--- a/dlls/oleaut32/varformat.c
+++ b/dlls/oleaut32/varformat.c
@@ -2486,17 +2486,17 @@ HRESULT WINAPI VarMonthName(INT iMonth,
size = GetLocaleInfoW(LOCALE_USER_DEFAULT,localeValue, NULL, 0);
if (!size) {
- FIXME("GetLocaleInfo 0x%lx failed.\n", localeValue);
- return E_INVALIDARG;
+ ERR("GetLocaleInfo 0x%lx failed.\n", localeValue);
+ return HRESULT_FROM_WIN32(GetLastError());
}
str = HeapAlloc(GetProcessHeap(),0,sizeof(WCHAR)*size);
if (!str)
return E_OUTOFMEMORY;
size = GetLocaleInfoW(LOCALE_USER_DEFAULT,localeValue, str, size);
if (!size) {
- FIXME("GetLocaleInfo of 0x%lx failed in 2nd stage?!\n", localeValue);
+ ERR("GetLocaleInfo of 0x%lx failed in 2nd stage?!\n", localeValue);
HeapFree(GetProcessHeap(),0,str);
- return E_INVALIDARG;
+ return HRESULT_FROM_WIN32(GetLastError());
}
*pbstrOut = SysAllocString(str);
HeapFree(GetProcessHeap(),0,str);
More information about the wine-cvs
mailing list