Bug 841451 - Fix build problems in metro/commandexecutehandler [r=jimm]

This commit is contained in:
Matt Brubeck 2013-02-14 11:50:40 -08:00
parent 4247771d4c
commit ff6809a871
3 changed files with 6 additions and 2 deletions

View File

@ -5,6 +5,10 @@
#include "CEHHelper.h"
#ifdef SHOW_CONSOLE
#include <io.h> // _open_osfhandle
#endif
HANDLE sCon;
LPCWSTR metroDX10Available = L"MetroD3DAvailable";

View File

@ -21,7 +21,7 @@ extern LPCWSTR metroDX10Available;
void Log(const wchar_t *fmt, ...);
#if defined(SHOW_CONSOLE)
static void SetupConsole();
void SetupConsole();
#endif
bool IsDX10Available();

View File

@ -146,7 +146,7 @@ public:
#ifdef SHOW_CONSOLE
Log(L"SetSelection param count: %d", count);
for (int idx = 0; idx < count; idx++) {
for (DWORD idx = 0; idx < count; idx++) {
IShellItem* item = NULL;
if (SUCCEEDED(aArray->GetItemAt(idx, &item))) {
LPWSTR str = NULL;