Unicode strings termination fixes.
This commit is contained in:
parent
e3b9bd9747
commit
da9720c726
|
@ -58,7 +58,7 @@ short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf)
|
||||||
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf)
|
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, UINT cbBuf)
|
||||||
{
|
{
|
||||||
int i, len;
|
int i, len;
|
||||||
static const WCHAR brkpoint[] = {'*','[',']'};
|
static const WCHAR brkpoint[] = {'*','[',']',0};
|
||||||
TRACE("(%p %p %d); \n", lpFile, lpTitle, cbBuf);
|
TRACE("(%p %p %d); \n", lpFile, lpTitle, cbBuf);
|
||||||
|
|
||||||
if(lpFile == NULL || lpTitle == NULL)
|
if(lpFile == NULL || lpTitle == NULL)
|
||||||
|
|
|
@ -1052,13 +1052,13 @@ int WINAPI PathParseIconLocationW(LPWSTR lpszPath)
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI SHLWAPI_4(LPWSTR lpszPath,DWORD dwWhich)
|
BOOL WINAPI SHLWAPI_4(LPWSTR lpszPath,DWORD dwWhich)
|
||||||
{
|
{
|
||||||
static const WCHAR pszExts[7][5] = { { '.', 'p', 'i', 'f', '0'},
|
static const WCHAR pszExts[7][5] = { { '.', 'p', 'i', 'f', 0},
|
||||||
{ '.', 'c', 'o', 'm', '0'},
|
{ '.', 'c', 'o', 'm', 0},
|
||||||
{ '.', 'e', 'x', 'e', '0'},
|
{ '.', 'e', 'x', 'e', 0},
|
||||||
{ '.', 'b', 'a', 't', '0'},
|
{ '.', 'b', 'a', 't', 0},
|
||||||
{ '.', 'l', 'n', 'k', '0'},
|
{ '.', 'l', 'n', 'k', 0},
|
||||||
{ '.', 'c', 'm', 'd', '0'},
|
{ '.', 'c', 'm', 'd', 0},
|
||||||
{ '0', '0', '0', '0', '0'} };
|
{ 0, 0, 0, 0, 0} };
|
||||||
|
|
||||||
TRACE("(%s,%ld)\n", debugstr_w(lpszPath), dwWhich);
|
TRACE("(%s,%ld)\n", debugstr_w(lpszPath), dwWhich);
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,7 @@ static const WCHAR lpszContentTypeW[] = { 'C','o','n','t','e','n','t',' ','T','y
|
||||||
static const char *szMimeDbContentA = "MIME\\Database\\Content Type\\";
|
static const char *szMimeDbContentA = "MIME\\Database\\Content Type\\";
|
||||||
static const WCHAR szMimeDbContentW[] = { 'M', 'I', 'M','E','\\',
|
static const WCHAR szMimeDbContentW[] = { 'M', 'I', 'M','E','\\',
|
||||||
'D','a','t','a','b','a','s','e','\\','C','o','n','t','e','n','t',
|
'D','a','t','a','b','a','s','e','\\','C','o','n','t','e','n','t',
|
||||||
' ','T','y','p','e','\\', '0' };
|
' ','T','y','p','e','\\', 0 };
|
||||||
static const DWORD dwLenMimeDbContent = 27; /* strlen of szMimeDbContentA/W */
|
static const DWORD dwLenMimeDbContent = 27; /* strlen of szMimeDbContentA/W */
|
||||||
|
|
||||||
static const char *szExtensionA = "Extension";
|
static const char *szExtensionA = "Extension";
|
||||||
|
|
Loading…
Reference in New Issue