Thomas Weidenmueller : oleaut32: Fix converting file name to Unicode.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon May 15 04:51:51 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: 05d629264c9e0053143e6a726eb892cdbf867373
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=05d629264c9e0053143e6a726eb892cdbf867373
Author: Thomas Weidenmueller <wine-patches at reactsoft.com>
Date: Fri May 12 00:07:59 2006 +0200
oleaut32: Fix converting file name to Unicode.
Fix converting the typelib file name to Unicode by using the correct
buffer size.
---
dlls/oleaut32/tmarshal.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/oleaut32/tmarshal.c b/dlls/oleaut32/tmarshal.c
index 139662d..b25cc4d 100644
--- a/dlls/oleaut32/tmarshal.c
+++ b/dlls/oleaut32/tmarshal.c
@@ -300,7 +300,7 @@ _get_typeinfo_for_iid(REFIID riid, IType
ERR("Could not get typelib fn?\n");
return E_FAIL;
}
- MultiByteToWideChar(CP_ACP, 0, tlfn, -1, tlfnW, -1);
+ MultiByteToWideChar(CP_ACP, 0, tlfn, -1, tlfnW, sizeof(tlfnW) / sizeof(tlfnW[0]));
hres = LoadTypeLib(tlfnW,&tl);
if (hres) {
ERR("Failed to load typelib for %s, but it should be there.\n",debugstr_guid(riid));
More information about the wine-cvs
mailing list