X-Git-Url: https://git.cworth.org/git?p=apitrace-tests;a=blobdiff_plain;f=apps%2Fd3d9%2Ftri.cpp;h=8c3fda7baa76e6ae7151837a85903a24ba7afc19;hp=816673497027b8c9421642139caa8d8047f930d5;hb=c41cfb0f8cca8818f0a512d58f4c43820321e622;hpb=ff92190d6ea9fb593cdbcc639361c305e527129a diff --git a/apps/d3d9/tri.cpp b/apps/d3d9/tri.cpp index 8166734..8c3fda7 100644 --- a/apps/d3d9/tri.cpp +++ b/apps/d3d9/tri.cpp @@ -34,11 +34,13 @@ static IDirect3DDevice9 * g_pDevice = NULL; static D3DPRESENT_PARAMETERS g_PresentationParameters; -int WINAPI -WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR pCmdLine, int nCmdShow) +int +main(int argc, char *argv[]) { HRESULT hr; + HINSTANCE hInstance = GetModuleHandle(NULL); + WNDCLASSEX wc = { sizeof(WNDCLASSEX), CS_CLASSDC,