Skip to content

Commit

Permalink
Some TCHAR fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Falcosoft committed Jun 17, 2024
1 parent 4a722fc commit fe19d1b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions vsthost/wavewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,19 @@ WaveWriter::WaveWriter() :
msgWindow(),
msg()
{
_tcscpy_s(fileName, L"VSTiCapture.wav");
_tcscpy_s(fileName, _T("VSTiCapture.wav"));
}

uint32_t WaveWriter::Init(int chCount, DWORD sampleRate, HWND ownerWindow, HWND messageWindow, DWORD message)
{
OPENFILENAME ofn = { 0 };
ofn.lStructSize = IsWinNT4() ? OPENFILENAME_SIZE_VERSION_400 : sizeof(ofn);
ofn.hwndOwner = ownerWindow;
ofn.lpstrFilter = L"Wave Files (*.wav)\0*.wav\0All Files (*.*)\0*.*\0";
ofn.lpstrFilter = _T("Wave Files (*.wav)\0*.wav\0All Files (*.*)\0*.*\0");
ofn.lpstrFile = fileName;
ofn.nMaxFile = MAX_PATH;
ofn.Flags = OFN_HIDEREADONLY | OFN_NOCHANGEDIR | OFN_OVERWRITEPROMPT | OFN_EXPLORER | OFN_ENABLEHOOK | OFN_ENABLESIZING;
ofn.lpstrDefExt = L"wav";
ofn.lpstrDefExt = _T("wav");

if (GetSaveFileName(&ofn))
{
Expand Down
2 changes: 1 addition & 1 deletion vstmidiproxy/vstmidiproxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,7 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
PNMLINK pNMLink = (PNMLINK)lParam;
LITEM item = pNMLink->item;

ShellExecute(NULL, L"open", item.szUrl, NULL, NULL, SW_SHOW);
ShellExecute(NULL, _T("open"), item.szUrl, NULL, NULL, SW_SHOW);
}
}
}
Expand Down

0 comments on commit fe19d1b

Please sign in to comment.