Skip to content
Snippets Groups Projects
Commit 7e39c75b authored by François Gouget's avatar François Gouget Committed by Alexandre Julliard
Browse files

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

size.
parent 271f522f
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment