[ros-bugs] [Bug 6759] REGRESSION: UltraVNC server fails to start

ReactOS.Bugzilla at reactos.org ReactOS.Bugzilla at reactos.org
Fri May 11 02:56:34 UTC 2012


http://www.reactos.org/bugzilla/show_bug.cgi?id=6759





--- Comment #8 from jimtabor <james.tabor at reactos.org>  2012-05-11 02:56:32 CET ---
 winvnc.cpp Row 850

// rdv&sf at 2007 - New TrayIcon impuDEsktop/impersonation thread stuff

DWORD WINAPI imp_desktop_thread(LPVOID lpParam)
{
        vncServer *server = (vncServer *)lpParam;
        HDESK desktop;
        //vnclog.Print(LL_INTERR, VNCLOG("SelectDesktop \n"));
        //vnclog.Print(LL_INTERR, VNCLOG("OpenInputdesktop2 NULL\n"));
        desktop = OpenInputDesktop(0, FALSE,
               DESKTOP_CREATEMENU | DESKTOP_CREATEWINDOW | 
               DESKTOP_ENUMERATE | DESKTOP_HOOKCONTROL |   
               DESKTOP_WRITEOBJECTS | DESKTOP_READOBJECTS |
               DESKTOP_SWITCHDESKTOP | GENERIC_WRITE );


This fails!
ntuser/desktop.c:1750) err: IntSetThreadDesktop hDesktop:0xd8, FOF:0

ntuser/desktop.c:1885) err: IntSetThreadDesktop: pti 0xff4f44e8 ppi 0xff5028e8
switched from object 0x0 to 0xff8d4ab8

ntuser/desktop.c:1341) err: Enter NtUserOpenInputDesktop InputDesktopHandle
0x44

ntuser/desktop.c:1347) err: Validation of input desktop handle (0x44) failed

ntuser/desktop.c:1559) err: Enter NtUserGetThreadDesktop

ntuser/desktop.c:1622) err: Leave NtUserGetThreadDesktop, ret=216

ntuser/winsta.c:612) err: Trying to open window station 0x0

ntuser/winsta.c:208) err: Invalid window station handle

ntuser/winsta.c:622) err: Failed: 0xc0000008


For some reason we can't get it passed IntValidateDesktopHandle... I tried
every hack I could crack this! ReactOS uses this and it works!

hDesk = 0x44 and pDesk = 0xff8d4ab8. I see "impersonation thread stuff" so ask
Alex.... what did we turn off?


-- 
Configure bugmail: http://www.reactos.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the Ros-bugs mailing list