@@ -103,8 +103,8 @@ PyTypeObject PyDSBUFFERDESCType = {
103103    //  IDirectSound::CreateSoundBuffer call. With this flag set, an application using DirectSound can continue to play
104104    //  its sticky focus buffers if the user switches to another application not using DirectSound. In this situation,
105105    //  the application's normal buffers are muted, but the sticky focus buffers are still audible. This is useful for
106-     //  nongame applications, such as movie playback (DirectShow™ ), when the user wants to hear the soundtrack while
107-     //  typing in Microsoft Word or Microsoft®  Excel, for example. However, if the user switches to another DirectSound
106+     //  nongame applications, such as movie playback (DirectShow� ), when the user wants to hear the soundtrack while
107+     //  typing in Microsoft Word or Microsoft�  Excel, for example. However, if the user switches to another DirectSound
108108    //  application, all sound buffers, both normal and sticky focus, in the previous application are muted.
109109    //  @flag DSBCAPS_GLOBALFOCUS|The buffer is a global sound buffer. With this flag set, an application using
110110    //  DirectSound can continue to play its buffers if the user switches focus to another application, even if the new
@@ -167,7 +167,7 @@ PyDSBUFFERDESC::~PyDSBUFFERDESC() { Py_XDECREF(m_obWFX); }
167167int  PyDSBUFFERDESC::setattro (PyObject *self, PyObject *obname, PyObject *obvalue)
168168{
169169    PyDSBUFFERDESC *obself = (PyDSBUFFERDESC *)self;
170-     char  *name = PYWIN_ATTR_CONVERT (obname);
170+     const   char  *name = PyUnicode_AsUTF8 (obname);
171171    if  (name == NULL )
172172        return  -1 ;
173173
0 commit comments