19 May
2008
19 May
'08
10:58 a.m.
"Michael Karcher" <wine(a)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? -- Dmitry.