Commit 7e39c75b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

If lpTitle==NULL and cbBuf==0 then we must return the required buffer

size.
parent 271f522f
......@@ -28,7 +28,7 @@ short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, UINT cbBuf)
TRACE("(%p %p %d); \n", lpFile, lpTitle, cbBuf);
if(lpFile == NULL || lpTitle == NULL)
if(lpFile == NULL || (lpTitle == NULL && cbBuf != 0))
return -1;
len = strlen(lpFile);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment