Skip to content

Commit

Permalink
the DPRINTF used in sqWin32PluginSupport.c takes a TCHAR *, not a char *
Browse files Browse the repository at this point in the history
It's hard to decipher, because DPRINTF is both:

- a MACRO at top of this file (and in many other files just to shuffle the cards)
- a function in sqWin32Main.c

Since the MACRO looks like recursive, it's a kind of dangerously convoluted code!
  • Loading branch information
nicolas-cellier-aka-nice committed Dec 28, 2018
1 parent 539c769 commit 7c5fe91
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions platforms/win32/vm/sqWin32PluginSupport.c
Expand Up @@ -81,7 +81,7 @@ EXPORT(int) primitivePluginBrowserReady(void)
{
if(!fBrowserMode) {
/* fast failure is better when not in browser */
DPRINTF(("fBrowserMode == 0\n"));
DPRINTF((TEXT("fBrowserMode == 0\n")));
return primitiveFail();
}
pop(1);
Expand Down Expand Up @@ -424,7 +424,7 @@ void pluginPostURLRequest(int id, void* urlIndex, int urlSize,
*/
void pluginSetBrowserPipe(MSG *msg)
{
DPRINTF(("New browser pipe: %x\n",msg->lParam));
DPRINTF((TEXT("New browser pipe: %x\n"),msg->lParam));
if(hBrowserPipe) CloseHandle(hBrowserPipe);
hBrowserPipe = (HANDLE) msg->lParam;
if(!CreatePipe(&hClientReadEnd, &hClientWriteEnd, NULL, 4096))
Expand Down Expand Up @@ -469,15 +469,15 @@ void pluginInit(void)
*/
void pluginHandleEvent(MSG *msg)
{
DPRINTF(("Checking for plugin message (%x)\n",msg->message));
DPRINTF(("\tg_WM_QUIT_SESSION: %x\n",g_WM_QUIT_SESSION));
DPRINTF(("\tg_WM_BWND_SIZE: %x\n",g_WM_BWND_SIZE));
DPRINTF(("\tg_WM_REQUEST_DATA: %x\n",g_WM_REQUEST_DATA));
DPRINTF(("\tg_WM_POST_DATA: %x\n",g_WM_POST_DATA));
DPRINTF(("\tg_WM_RECEIVE_DATA: %x\n",g_WM_RECEIVE_DATA));
DPRINTF(("\tg_WM_INVALIDATE: %x\n",g_WM_INVALIDATE));
DPRINTF(("\tg_WM_BROWSER_PIPE: %x\n",g_WM_BROWSER_PIPE));
DPRINTF(("\tg_WM_CLIENT_PIPE: %x\n",g_WM_CLIENT_PIPE));
DPRINTF((TEXT("Checking for plugin message (%x)\n"),msg->message));
DPRINTF((TEXT("\tg_WM_QUIT_SESSION: %x\n"),g_WM_QUIT_SESSION));
DPRINTF((TEXT("\tg_WM_BWND_SIZE: %x\n"),g_WM_BWND_SIZE));
DPRINTF((TEXT("\tg_WM_REQUEST_DATA: %x\n"),g_WM_REQUEST_DATA));
DPRINTF((TEXT("\tg_WM_POST_DATA: %x\n"),g_WM_POST_DATA));
DPRINTF((TEXT("\tg_WM_RECEIVE_DATA: %x\n"),g_WM_RECEIVE_DATA));
DPRINTF((TEXT("\tg_WM_INVALIDATE: %x\n"),g_WM_INVALIDATE));
DPRINTF((TEXT("\tg_WM_BROWSER_PIPE: %x\n"),g_WM_BROWSER_PIPE));
DPRINTF((TEXT("\tg_WM_CLIENT_PIPE: %x\n"),g_WM_CLIENT_PIPE));

/* Messages posted from a different process */
if(msg->message == g_WM_QUIT_SESSION) exit(0);
Expand Down

0 comments on commit 7c5fe91

Please sign in to comment.