@@ -103,8 +103,8 @@ PyTypeObject PyDSBUFFERDESCType = {
103
103
// IDirectSound::CreateSoundBuffer call. With this flag set, an application using DirectSound can continue to play
104
104
// its sticky focus buffers if the user switches to another application not using DirectSound. In this situation,
105
105
// 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
108
108
// application, all sound buffers, both normal and sticky focus, in the previous application are muted.
109
109
// @flag DSBCAPS_GLOBALFOCUS|The buffer is a global sound buffer. With this flag set, an application using
110
110
// 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); }
167
167
int PyDSBUFFERDESC::setattro (PyObject *self, PyObject *obname, PyObject *obvalue)
168
168
{
169
169
PyDSBUFFERDESC *obself = (PyDSBUFFERDESC *)self;
170
- char *name = PYWIN_ATTR_CONVERT (obname);
170
+ const char *name = PyUnicode_AsUTF8 (obname);
171
171
if (name == NULL )
172
172
return -1 ;
173
173
0 commit comments