"Michael Karcher" wine@mkarcher.dialup.fu-berlin.de wrote:
+INT WINAPI StringFromGUID2_16(REFGUID id, LPSTR str, INT cmax) +{
- char xguid[80];
- int len;
- if (WINE_StringFromCLSID( id, xguid ))
- return 0;
- len = strlen( xguid ) + 1; /* The terminating zero counts */
- if (len > cmax)
return 0;
- strcpy( str, xguid );
- return len;
+}
This is not an equivalent of the old implementation, is it really supposed to fail if the buffer length is shorter than the guid?