mirror of
https://github.com/reactos/wine.git
synced 2024-11-28 14:10:32 +00:00
If lpTitle==NULL and cbBuf==0 then we must return the required buffer
size.
This commit is contained in:
parent
271f522fa9
commit
7e39c75b42
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user