ChangeSet ID: 21281 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/15 10:53:47
Modified files: dlls/msi : install.c
Log message: Mike McCormack mike@codeweavers.com Only return ERROR_MORE_DATA if there's a buffer to copy a result into.
Patch: http://cvs.winehq.org/patch.py?id=21281
Old revision New revision Changes Path 1.19 1.20 +1 -1 wine/dlls/msi/install.c
Index: wine/dlls/msi/install.c diff -u -p wine/dlls/msi/install.c:1.19 wine/dlls/msi/install.c:1.20 --- wine/dlls/msi/install.c:1.19 15 Nov 2005 16:53:47 -0000 +++ wine/dlls/msi/install.c 15 Nov 2005 16:53:47 -0000 @@ -142,7 +142,7 @@ UINT msi_strcpy_to_awstring( LPCWSTR str awbuf->str.a[*sz - 1] = 0; }
- if (len >= *sz) + if (awbuf->str.w && len >= *sz) r = ERROR_MORE_DATA; *sz = len; return r;