search for: commandlinetoargvw

Displaying 20 results from an estimated 23 matches for "commandlinetoargvw".

2011 Sep 20
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...ere I tried this (it has a number of issues but I'd like to > hear from someone that this solution makes sense before I try to address > them). General nitpick: make sure you're using spaces instead of tabs, and that your lines are less than 80 characters wide. + wchar_t** wargv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); You may want to test the consistency of this approach from the original with regards to backslashes and quotation marks, if for no other reason than documenting it. CommandLineToArgvW calls them out in the documentation. + for (int i = 0; i != argc; ++i) + { + i...
2011 Sep 20
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
...dd the other one as well. On Tue, Sep 20, 2011 at 7:42 PM, Aaron Ballman <aaron at aaronballman.com>wrote: > > You may want to test the consistency of this approach from the > original with regards to backslashes and quotation marks, if for no > other reason than documenting it. CommandLineToArgvW calls them out > in the documentation. > > I don't understand what you meant by this? I'm aware that CommandLineToArgvW has special interpretation of backslashes and quotes, but what should I check exactly? -------------- next part -------------- An HTML attachment was scrubbed......
2011 Sep 20
0
[LLVMdev] [cfe-dev] Unicode path handling on Windows
I spent some more time on this. My idea was to use functionality from llvm::sys::fs like file_status instead of stat struct, but as it turns out this is not really possible. file_status structure is not a replacement for stat, nor are there functions inside llvm::sys::fs that can replace calls to ::stat and ::open. The only solution I can see is to create wrappers around ::stat, ::open, etc. and
2013 Aug 21
2
[PATCH 1/3] Rationalise whitespace to 4 space indentation with no trailing spaces
...us (DWORD, DWORD, DWORD); int main (int argc, char **a_argv) -{ +{ /* For compatibility with MinGW, see: - http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ + http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ TCHAR **argv; - argv = CommandLineToArgvW (GetCommandLineW (), &argc); - - SERVICE_TABLE_ENTRY DispatchTable[] = { - { - SVCNAME, - (LPSERVICE_MAIN_FUNCTION) SvcMain - }, - { NULL, NULL } - }; - - if( - lstrcmpi( - argv[1], - TEXT("install") - ) == 0 - ) { - SvcInstall(); - return EXIT_SUCCESS; - } -...
2011 Sep 07
2
[LLVMdev] [cfe-dev] Unicode path handling on Windows
On Wed, Sep 7, 2011 at 12:20 AM, Nikola Smiljanic <popizdeh at gmail.com> wrote: > So what are you exactly saying? Somebody proposed using GetCommandLine > instead of using argv directly. And what about my other points about ::open > and ::stat? Because of the way Windows works, the only fully correct solution is to never touch the native charset, and keep everything in UTF-8/16
2013 Nov 18
7
RHSrvAny: Fix failure on Windows 2003
The newly rebuilt RHSrvAny worked on Windows XP, Windows 2003 R2, and Windows Vista+, but segfaulted on Windows 2003. After much investigation, the issue seems to have been with inconsistent use of Unicode. This series fixes compilation on Microsoft Visual C++ 2010 (the most recent version which runs on Windows 2003), fixes all compiler warnings, and enabled warnings during the build. The
2005 Mar 21
1
Program Crashes on Startup
...tupInfoA() retval=0000000c ret=004da619 0009:Call kernel32.GetModuleHandleA(00000000) ret=004da642 0009:Ret kernel32.GetModuleHandleA() retval=00400000 ret=004da642 0009:Call kernel32.GetCommandLineW() ret=004086dc 0009:Ret kernel32.GetCommandLineW() retval=77c007a0 ret=004086dc 0009:Call shell32.CommandLineToArgvW(77c007a0 L"\".wine/drive_c/Program Files/Weathersoft/WeatherScope.exe\"",77acfe5c) ret=004086e3 0009:Call kernel32.GlobalAlloc(00000000,0000007a) ret=76b2ad06 0009:Call ntdll.RtlAllocateHeap(77c00000,00000000,0000007a) ret=77b475ef 0009:Ret ntdll.RtlAllocateHeap() retval=77c475...
2013 Aug 29
5
[PATCH 1/6] Rationalise whitespace to 4 space indentation with no trailing spaces
...us (DWORD, DWORD, DWORD); int main (int argc, char **a_argv) -{ +{ /* For compatibility with MinGW, see: - http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ + http://demosten-eng.blogspot.com/2008/08/mingw-and-unicode-support.html */ TCHAR **argv; - argv = CommandLineToArgvW (GetCommandLineW (), &argc); - - SERVICE_TABLE_ENTRY DispatchTable[] = { - { - SVCNAME, - (LPSERVICE_MAIN_FUNCTION) SvcMain - }, - { NULL, NULL } - }; - - if( - lstrcmpi( - argv[1], - TEXT("install") - ) == 0 - ) { - SvcInstall(); - return EXIT_SUCCESS; - } -...
2014 Oct 02
15
[Bug 2283] New: option to execute command without shell
https://bugzilla.mindrot.org/show_bug.cgi?id=2283 Bug ID: 2283 Summary: option to execute command without shell Product: Portable OpenSSH Version: 6.6p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: sshd Assignee: unassigned-bugs at
2014 Jul 11
0
Wine release 1.7.22
...but work area is blank 19838 Treeview 'access violation' in ImgBurn v2.5.0.0's Disc Layout Editor window 21804 FPS Creator trial crashes on startup 22698 mshtml: iexplore crash after click "Install" at www.browserchoice.eu 22829 Sysinternals RAMMap crashes (shell32.CommandLineToArgvW needs to include terminating NULL element in returned array of pointers starting with WinVer >= Windows Vista) 23210 REDCINE v20.0.0 silently exits during startup 24286 Google SketchUp 8 crashes when using Phototextures feature 24904 No$Zoomer.exe 2.3.x crashes when run. 25110 PDF Pa...
2012 Oct 12
0
Wine release 1.5.15
...oledb32/tests: Make test_database() static. shell32/tests: Some more type consistency fixes for the ShellExecute() return value checks. shell32/tests: Simplify shlexec's test_argify() and test_lpFile_parsed() and avoid numeric literals. shell32/tests: Write proper tests for CommandLineToArgvW(). shell32/tests: Add more ShellExecute() shortcut tests. shell32/tests: Merge shlexec's test_exes_long() with the other parameter passing tests. shell32/tests: Greatly expand the test_argify() tests. shell32/tests: Fix test_one_cmdline() and add a few more tests....
2009 Mar 27
0
Wine release 1.1.18
...7 Pro: won't save to multiple files. 16941 interrupts cause nested trace output 17183 Not showing any text in one of the textboxes 17499 Sun JRE 1.6.0_12 installer crashes 17683 ExpressPCB: does not properly print circuit board traces 17705 Audiosurf: crashes at startup 17759 CommandLineToArgvW bug with empty lpCmdLine 17822 Logic Friday: crashes when entering equation 17843 Rubbish entries in registry on clean .wine 17854 build broken in rpcrt4 on OpenSolaris ---------------------------------------------------------------- Changes since 1.1.17: Alexander Morozov (1): ha...
2013 Mar 05
3
Answering the Hydrogen Audio thread
Take a look at how the Opus Tools package handles it. So far as I remember, it requires minimal changes to the file(s) containing references to the main entry point and to fopen. It imports the command line arguments as wchar_t and converts them to UTF-8, and has replacement functions for fopen and some text output that accept UTF-8 instead of ANSI. I think it automatically kicks in on definition
2008 Feb 08
0
Wine release 0.9.55
...q.org/site/sending_patches Wine is available thanks to the work of many people. See the file AUTHORS in the distribution for the complete list. ---------------------------------------------------------------- Changes since 0.9.54: Alexander Nicolaysen S?rnes (1): shell32: Use LocalFree in CommandLineToArgvW. Alexandre Julliard (18): winex11: Abstract the depth->bpp conversion and use it in X11DRV_DIB_CreateDIBFromPixmap. winex11: Remove unneeded check on bitmap depth, screen bpp cannot be 15. shell32: Fix permissions of newly-created directories. gdi32: Avoid locking in Cre...
2010 Jul 30
0
Wine release 1.3.0
...rainian translation. taskmgr: Fixed Ukrainian translation. comdlg32: Ukrainian translation update. crypt32: Ukrainian translation update. comdlg32: Fixed Russian standard dialog sizes. comdlg32: Fixed Ukrainian standard dialog sizes. Ilya Basin (2): shell32: Fix CommandLineToArgvW("") truncating returned exe path. shell32/tests: CommandLineToArgvW("") shouldn't truncate returned exe path. Jacek Caban (24): jscript: Fixed sort_cmp for non-string arguments. mshtml: Added IHTMLElement2::getBoundingClientRect implementation. mshtm...
2012 Nov 23
0
Wine release 1.5.18
...s: Make GetFrame return WINCODEC_ERR_FRAMEMISSING without an image data. Erich Hoover (2): advapi32: Implement SetSecurityInfo on top of NtSetSecurityObject. wininet: Fix InternetCrackUrl parsing URLs containing a semicolon. Francois Gouget (4): shell32: Fix a buffer overflow in CommandLineToArgvW(). msvcp60: Make some codecvt_xxx() functions static or remove them. winegstreamer: Make the GST_QualityControl methods static. server: Print the usage to stdout when invoked with --help. Fr?d?ric Delanoy (4): ole32: Avoid erroneously freeing a variable in ReadFmtUserTypeSt...
2007 Mar 30
0
Wine release 0.9.34
...ctl32: Constify some variables. comctl32: Constify some variables. comctl32: Constify some variables. comctl32: Cast-qual warnings fix. Aric Stewart (3): ole32: Rework storage with blockfiles to properly use ILockBytes interfaces. Revert 7c35db07c35db0... msiexec: Use CommandLineToArgvW instead of process_args to reduce code duplication. imm32: Change the default IME window to better reflect applications request. Chris Robinson (15): quartz: Hold a reference on a filter while sending data to it. quartz: Release objects when pins fail to connect. quartz: Di...
2015 Apr 03
0
Wine release 1.7.40
...ure_type enum to blit shader functions. wined3d: Use bitfields in struct arbfp_blit_type. wined3d: Pass a struct arbfp_blit_type to the blit shader generation functions. wined3d: Define a constant for the blit texture size parameter. Thomas Faber (5): wscript: Correctly use CommandLineToArgvW. gdi32: Avoid uninitialized variable use in EnumEnhMetaFile (MSVC). setupapi/tests: Avoid side-effect in an assert. user32/tests: Avoid side-effect in an assert. winegstreamer: Avoid side-effects in asserts. Vincent Povirk (8): gdiplus: Fonts in UnitWorld shouldn'...
2018 Dec 07
0
Wine release 4.0-rc1
...oskrnl.exe: Drop the WINE_ prefix from debug functions. d3dx9/tests: Use SetRectEmpty() instead of open coding it. Nikolay Sivov (50): dwrite/tests: Add some tests for GetUnicodeRanges(). shcore: Turn COM exports to stubs. shcore: Add AppUserModelID stubs. shcore: Add CommandLineToArgvW(). shell32: Forward some functions to shcore.dll. shcore: Implement SHCreateMemStream(). shcore: Add file-based stream. shcore: Add ThreadRef functions. shcore: Add process reference API. shell32: Forward process reference calls to shcore. shcore: Add SHCre...
2008 Feb 22
0
Wine release 0.9.56
...nt passed to GetClipboardFormatNameW in WriteFmtUserTypeStg. shlwapi: IID_IInternetSecurityMgrSite is now defined so remove the local definition from IUnknown_GetWindow. user32: Fix incorrect character count passed to GetWindowTextW in ICONTITLE_Paint. shell32: Memory allocated by CommandLineToArgvW should be that got from LocalAlloc/LocalReAlloc, not from GlobalAlloc. crypt32: Fix function declaration - WINAPI should come after the return type. widl: Remove unused headers. widl: Guard the inclusion of unistd.h. comctl32: Fix the character count passed into LoadStringW...