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)
|
||||
{
|
||||
int i, len;
|
||||
static const WCHAR brkpoint[] = {'*','[',']'};
|
||||
static const WCHAR brkpoint[] = {'*','[',']',0};
|
||||
TRACE("(%p %p %d); \n", lpFile, lpTitle, cbBuf);
|
||||
|
||||
if(lpFile == NULL || lpTitle == NULL)
|
||||
|
|
|
@ -1052,13 +1052,13 @@ int WINAPI PathParseIconLocationW(LPWSTR lpszPath)
|
|||
*/
|
||||
BOOL WINAPI SHLWAPI_4(LPWSTR lpszPath,DWORD dwWhich)
|
||||
{
|
||||
static const WCHAR pszExts[7][5] = { { '.', 'p', 'i', 'f', '0'},
|
||||
{ '.', 'c', 'o', 'm', '0'},
|
||||
{ '.', 'e', 'x', 'e', '0'},
|
||||
{ '.', 'b', 'a', 't', '0'},
|
||||
{ '.', 'l', 'n', 'k', '0'},
|
||||
{ '.', 'c', 'm', 'd', '0'},
|
||||
{ '0', '0', '0', '0', '0'} };
|
||||
static const WCHAR pszExts[7][5] = { { '.', 'p', 'i', 'f', 0},
|
||||
{ '.', 'c', 'o', 'm', 0},
|
||||
{ '.', 'e', 'x', 'e', 0},
|
||||
{ '.', 'b', 'a', 't', 0},
|
||||
{ '.', 'l', 'n', 'k', 0},
|
||||
{ '.', 'c', 'm', 'd', 0},
|
||||
{ 0, 0, 0, 0, 0} };
|
||||
|
||||
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 WCHAR szMimeDbContentW[] = { 'M', 'I', 'M','E','\\',
|
||||
'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 char *szExtensionA = "Extension";
|
||||
|
|
Loading…
Reference in New Issue