wine/dlls/msi install.c
Alexandre Julliard
julliard at wine.codeweavers.com
Tue Nov 15 10:53:47 CST 2005
ChangeSet ID: 21281
CVSROOT: /opt/cvs-commit
Module name: wine
Changes by: julliard at winehq.org 2005/11/15 10:53:47
Modified files:
dlls/msi : install.c
Log message:
Mike McCormack <mike at 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;
More information about the wine-cvs
mailing list