Home
last modified time | relevance | path

Searched refs:awbuf (Results 1 – 1 of 1) sorted by relevance

/reactos/dll/win32/msi/
H A Dinstall.c158 UINT msi_strcpy_to_awstring( const WCHAR *str, int len, awstring *awbuf, DWORD *sz ) in msi_strcpy_to_awstring() argument
162 if (awbuf->str.w && !sz) in msi_strcpy_to_awstring()
169 if (awbuf->unicode && awbuf->str.w) in msi_strcpy_to_awstring()
171 memcpy( awbuf->str.w, str, min(len + 1, *sz) * sizeof(WCHAR) ); in msi_strcpy_to_awstring()
173 awbuf->str.w[*sz - 1] = 0; in msi_strcpy_to_awstring()
179 WideCharToMultiByte( CP_ACP, 0, str, len + 1, awbuf->str.a, *sz, NULL, NULL ); in msi_strcpy_to_awstring()
180 if (awbuf->str.a && *sz && lenA >= *sz) in msi_strcpy_to_awstring()
181 awbuf->str.a[*sz - 1] = 0; in msi_strcpy_to_awstring()
184 if (awbuf->str.w && len >= *sz) in msi_strcpy_to_awstring()