mirror of
				https://github.com/SoftFever/OrcaSlicer.git
				synced 2025-10-31 04:31:15 -06:00 
			
		
		
		
	This time the wWinMain did not provide a valid command line. Calling ::GetCommandLineW() helped.
This commit is contained in:
		
							parent
							
								
									206f16f374
								
							
						
					
					
						commit
						41c2775468
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -181,10 +181,10 @@ extern "C" { | |||
| } | ||||
| 
 | ||||
| #ifdef SLIC3R_WRAPPER_NOCONSOLE | ||||
| int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, wchar_t *lpCmdLine, int nCmdShow) | ||||
| int APIENTRY wWinMain(HINSTANCE /* hInstance */, HINSTANCE /* hPrevInstance */, PWSTR /* lpCmdLine */, int /* nCmdShow */) | ||||
| { | ||||
| 	int 	  argc; | ||||
| 	wchar_t **argv = CommandLineToArgvW(lpCmdLine, &argc); | ||||
| 	wchar_t **argv = ::CommandLineToArgvW(::GetCommandLineW(), &argc); | ||||
| #else | ||||
| int wmain(int argc, wchar_t **argv) | ||||
| { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 bubnikv
						bubnikv